Massage code, bump version

This commit is contained in:
Ram Rachum 2019-05-14 17:48:37 +03:00
parent 4e9c29cb58
commit f12d40bbe4
2 changed files with 5 additions and 4 deletions

View file

@ -24,7 +24,7 @@ import collections
__VersionInfo = collections.namedtuple('VersionInfo',
('major', 'minor', 'micro'))
__version__ = '0.0.37'
__version__ = '0.0.38'
__version_info__ = __VersionInfo(*(map(int, __version__.split('.'))))
del collections, __VersionInfo # Avoid polluting the namespace

View file

@ -7,6 +7,8 @@ import os
import inspect
import sys
PY3 = (sys.version_info[0] == 3)
if hasattr(abc, 'ABC'):
ABC = abc.ABC
else:
@ -44,11 +46,10 @@ try:
except AttributeError:
iscoroutinefunction = lambda whatever: False # Lolz
PY3 = sys.version_info[0] == 3
if PY3:
string_types = str,
string_types = (str,)
text_type = str
else:
string_types = basestring,
string_types = (basestring,)
text_type = unicode