update common

This commit is contained in:
ivan deng
2021-10-09 14:56:35 +08:00
parent f3a1597bda
commit 6f57ed35d2
23 changed files with 9125 additions and 21 deletions

View File

@@ -0,0 +1,14 @@
import sys
PY3 = sys.version_info[0] == 3
if PY3:
string_types = str
def iteritems(d, **kw):
return iter(d.items(**kw))
else:
string_types = basestring
def iteritems(d, **kw):
return iter(d.iteritems(**kw))