Fake brutal_hackery on Py3.

Because I'm not about to try to figure it out tonight.
This commit is contained in:
Simon Forman 2020-04-24 00:00:41 -07:00
parent d2785f6f68
commit 9ca5b24fd1
1 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,11 @@ import operator, math
from .parser import text_to_expression, Symbol
from .utils.stack import expression_to_string, list_to_stack, iter_stack, pick, concat
from .utils.brutal_hackery import rename_code_object
import sys
if sys.version_info.major < 3:
from .utils.brutal_hackery import rename_code_object
else:
rename_code_object = lambda _: lambda f: f
from .utils import generated_library as genlib
from .utils.types import (