Skip to content

Commit 70c908f

Browse files
committed
Python2 Compatibility
1 parent 341f456 commit 70c908f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webexteamssdk/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
from future import standard_library
3434
standard_library.install_aliases()
35+
native_str = str
3536

3637
import json
3738
import mimetypes
@@ -255,7 +256,8 @@ class ZuluTimeZone(tzinfo):
255256

256257
def tzname(self, dt):
257258
"""Time Zone Name."""
258-
return str("Z")
259+
# The future package's newstr is messing with Python2 compatibility
260+
return native_str("Z")
259261

260262
def utcoffset(self, dt):
261263
"""UTC Offset."""

0 commit comments

Comments
 (0)