mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 00:47:22 +08:00
21 lines
331 B
Python
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',
|
|
]
|