import sys import array PY2 = sys.version_info[0] == 2 _identity = lambda x: x if not PY2: text_type = str string_types = (str,) integer_types = (int, ) unichr = chr text_to_native = lambda s, enc: s iterkeys = lambda d: iter(d.keys()) itervalues = lambda d: iter(d.values()) iteritems = lambda d: iter(d.items()) from io import StringIO, BytesIO import pickle izip = zip imap = map range_type = range cmp = lambda a, b: (a > b) - (a < b) array_tobytes = array.array.tobytes else: text_type = unicode string_types = (str, unicode) integer_types = (int, long) text_to_native = lambda s, enc: s.encode(enc) unichr = unichr iterkeys = lambda d: d.iterkeys() itervalues = lambda d: d.itervalues() iteritems = lambda d: d.iteritems() from cStringIO import StringIO as BytesIO from StringIO import StringIO import cPickle as pickle from itertools import imap from itertools import izip range_type = xrange cmp = cmp array_tobytes = array.array.tostring number_types = integer_types + (float,) # # Since Python 3.3, a fast decimal implementation is already included in the # standard library. Otherwise use cdecimal when available # if sys.version_info[:2] >= (3, 3): import decimal else: try: import cdecimal as decimal except ImportError: import decimal
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
locale-data | Folder | 0755 |
|
|
localtime | Folder | 0755 |
|
|
messages | Folder | 0755 |
|
|
__init__.py | File | 709 B | 0644 |
|
_compat.py | File | 1.39 KB | 0644 |
|
core.py | File | 35.97 KB | 0644 |
|
dates.py | File | 65.36 KB | 0644 |
|
global.dat | File | 218.52 KB | 0644 |
|
languages.py | File | 2.68 KB | 0644 |
|
lists.py | File | 1.24 KB | 0644 |
|
localedata.py | File | 7.69 KB | 0644 |
|
numbers.py | File | 25.43 KB | 0644 |
|
plural.py | File | 20.81 KB | 0644 |
|
support.py | File | 21.77 KB | 0644 |
|
units.py | File | 10.84 KB | 0644 |
|
util.py | File | 8.59 KB | 0644 |
|