added global_settings.is_py2
This commit is contained in:
1 parent
5e94c11e40
commit
967b2e27a7
4 files changed
+7
-11
No files matched your search
@@ -45,11 +45,6 @@ if PY2:
|
||||
unichr = unichr
|
||||
unicodeT = unicode
|
||||
|
||||
def implements_iterator(cls):
|
||||
cls.next = cls.__next__
|
||||
del cls.__next__
|
||||
return cls
|
||||
|
||||
def implements_bool(cls):
|
||||
cls.__nonzero__ = cls.__bool__
|
||||
del cls.__bool__
|
||||
|
||||
Reference in new issue
Block a user