aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-03-28 15:57:48 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2019-04-08 15:11:57 +0200
commit4a038e54cf95515f5d02d5dd88d240fe5fb5204e (patch)
treea39c9d0bcb1abf63419d3cf8785fd0c68565510b /wee_slack.py
parent718721cbc725d3aa3db9fe2d606c81a56615a753 (diff)
downloadwee-slack-4a038e54cf95515f5d02d5dd88d240fe5fb5204e.tar.gz
Use StringIO from io
This is compatible with python 3, which StringIO from StringIO or cStringIO is not.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/wee_slack.py b/wee_slack.py
index a612869..281eb8b 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -4,6 +4,7 @@ from __future__ import print_function, unicode_literals
from collections import OrderedDict
from functools import wraps
+from io import StringIO
from itertools import islice, count
import textwrap
@@ -19,10 +20,6 @@ import collections
import ssl
import random
import string
-try:
- from cStringIO import StringIO
-except:
- from StringIO import StringIO
from websocket import create_connection, WebSocketConnectionClosedException