Skip to content

Commit

Permalink
Python2 Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
cmlccie committed Sep 9, 2018
1 parent 341f456 commit 70c908f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webexteamssdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

from future import standard_library
standard_library.install_aliases()
native_str = str

import json
import mimetypes
Expand Down Expand Up @@ -255,7 +256,8 @@ class ZuluTimeZone(tzinfo):

def tzname(self, dt):
"""Time Zone Name."""
return str("Z")
# The future package's newstr is messing with Python2 compatibility
return native_str("Z")

def utcoffset(self, dt):
"""UTC Offset."""
Expand Down

0 comments on commit 70c908f

Please sign in to comment.