✏️ 正在编辑: main.cpython-37.opt-1.pyc
路径:
/opt/alt/python37/lib/python3.7/site-packages/libpasteurize/__pycache__/main.cpython-37.opt-1.pyc
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
B �A�[� � @ sv d Z ddlmZmZmZ ddlZddlZddlZddlm Z m Z mZ ddlm Z ddlmZ ddlmZ d dd �Z dS )a� pasteurize: automatic conversion of Python 3 code to clean 2/3 code =================================================================== ``pasteurize`` attempts to convert existing Python 3 code into source-compatible Python 2 and 3 code. Use it like this on Python 3 code: $ pasteurize --verbose mypython3script.py This removes any Py3-only syntax (e.g. new metaclasses) and adds these import lines: from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from future import standard_library standard_library.install_hooks() from builtins import * To write changes to the files, use the -w flag. It also adds any other wrappers needed for Py2/3 compatibility. Note that separate stages are not available (or needed) when converting from Python 3 with ``pasteurize`` as they are when converting from Python 2 with ``futurize``. The --all-imports option forces adding all ``__future__`` imports, ``builtins`` imports, and standard library aliases, even if they don't seem necessary for the current state of each module. (This can simplify testing, and can reduce the need to think about Py2 compatibility when editing the code further.) � )�absolute_import�print_function�unicode_literalsN)�main�warn�StdoutRefactoringTool)�refactor)�__version__)� fix_namesc sx t jdd�}|jddddd� |jdd dd d� |jddd g dd� |jddddddd� |jddd g dd� |jddddd� |jddddd� |jd dd!d� |jd"d#dd$d� |jd%d&dd'd(d� d'}i }|�| �\}} d)}t}d*|d+<