/
valemobil
/
python-future
Обзор
Документация
Войти
/
valemobil
/
python-future
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/future/moves/copyreg.py
12 строк
438 B
Gregory P. Smith
Make future.moves.copyreg just _be_ copyreg on PY3
16 май 2019, 23:13
Не верифицирован
16 май 2019, 23:13
ede6f09
Код
Авторство
О чём код?
from __future__ import absolute_import from future.utils import PY3 if PY3: import copyreg, sys # A "*" import uses Python 3's copyreg.__all__ which does not include # all public names in the API surface for copyreg, this avoids that # problem by just making our module _be_ a reference to the actual module. sys.modules['future.moves.copyreg'] = copyreg else: __future_module__ = True from copy_reg import *