aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-03-19 23:34:16 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2020-03-19 23:35:04 +0100
commitd33b04930e72b2ccc9bbddc610903246d2d77b2b (patch)
tree668e7a0c87d53d9d7078501580c8e794fa5356dd
parent648d46d9693e5e323108d4a6b0da697a1d3b732e (diff)
downloadwee-slack-d33b04930e72b2ccc9bbddc610903246d2d77b2b.tar.gz
Fix broken tests with Python 2 after commit aa63263
We only use unicode strings on Python 2, so set str = unicode, so we can use the str type in the rest of the code.
-rw-r--r--wee_slack.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index edd636c..e00da71 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -36,6 +36,7 @@ from websocket import ABNF, create_connection, WebSocketConnectionClosedExceptio
try:
basestring # Python 2
unicode
+ str = unicode
except NameError: # Python 3
basestring = unicode = str