mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 02:14:04 +00:00
Massage code, bump version
This commit is contained in:
parent
4e9c29cb58
commit
f12d40bbe4
2 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue