diff options
Diffstat (limited to 'lib/python2.7/site-packages/south/utils/py3.py')
-rw-r--r-- | lib/python2.7/site-packages/south/utils/py3.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/python2.7/site-packages/south/utils/py3.py b/lib/python2.7/site-packages/south/utils/py3.py deleted file mode 100644 index 732e904..0000000 --- a/lib/python2.7/site-packages/south/utils/py3.py +++ /dev/null @@ -1,28 +0,0 @@ -""" -Python 2 + 3 compatibility functions. This is a very small subset of six. -""" - -import sys - -PY3 = sys.version_info[0] == 3 - -if PY3: - string_types = str, - text_type = str - raw_input = input - - import io - StringIO = io.StringIO - -else: - string_types = basestring, - text_type = unicode - raw_input = raw_input - - import cStringIO - StringIO = cStringIO.StringIO - - -def with_metaclass(meta, base=object): - """Create a base class with a metaclass.""" - return meta("NewBase", (base,), {}) |