whoami7 - Manager
:
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
libpasteurize
/
fixes
/
Upload File:
files >> //opt/alt/python37/lib/python3.7/site-packages/libpasteurize/fixes/fix_add_all__future__imports.py
""" Fixer for adding: from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals This is done when converting from Py3 to both Py3/Py2. """ from lib2to3 import fixer_base from libfuturize.fixer_util import future_import class FixAddAllFutureImports(fixer_base.BaseFix): BM_compatible = True PATTERN = "file_input" run_order = 1 def transform(self, node, results): future_import(u"unicode_literals", node) future_import(u"print_function", node) future_import(u"division", node) future_import(u"absolute_import", node)
Copyright ©2021 || Defacer Indonesia