Remove a use of deparse_code.

This commit is contained in:
rocky
2018-06-19 04:08:20 -04:00
parent 66ebb15d42
commit 98cd06d6e0
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import pytest
from uncompyle6 import PYTHON_VERSION, deparse_code
from uncompyle6 import PYTHON_VERSION, code_deparse
pytestmark = pytest.mark.skip(PYTHON_VERSION < 2.7,
reason="need at least Python 2.7")
@@ -19,4 +19,4 @@ if PYTHON_VERSION > 2.6:
for expr in single_expressions:
code = compile(expr + '\n', '<string>', 'single')
assert deparse_code(PYTHON_VERSION, code, compile_mode='single').text == expr + '\n'
assert code_deparse(code, compile_mode='single').text == expr + '\n'

View File

@@ -54,7 +54,7 @@ from uncompyle6.main import decompile_file
# For compatibility
uncompyle_file = decompile_file
# Conventience functions so you can say:
# Convenience functions so you can say:
# from uncompyle6 import (code_deparse, deparse_code2str)
code_deparse = uncompyle6.semantics.pysource.code_deparse