File: compat.py

package info (click to toggle)
python-binary-memcached 0.31.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 304 kB
  • sloc: python: 1,723; makefile: 17
file content (14 lines) | stat: -rw-r--r-- 240 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import six
try:
    import cPickle as pickle
except ImportError:
    import pickle as pickle  # type: ignore

__all__ = ('long', 'pickle', 'unicode')

if six.PY3:
    long = int
    unicode = str
else:
    long = long
    unicode = unicode