Files
catalyst/zipline/utils/compat.py
T
2016-05-04 15:56:09 -04:00

21 lines
331 B
Python

from six import PY2
if PY2:
from ctypes import py_object, pythonapi
mappingproxy = pythonapi.PyDictProxy_New
mappingproxy.argtypes = [py_object]
mappingproxy.restype = py_object
else:
from types import MappingProxyType as mappingproxy
unicode = type(u'')
__all__ = [
'mappingproxy',
'unicode',
]