Refactor some things regarding Python 2 support
This commit is contained in:
1 parent
7e063ff7af
commit
a8d3c46e9d
4 files changed
+51
-27
No files matched your search
@@ -64,7 +64,7 @@ def _fix_forward_reference(context, node):
|
||||
if is_string(evaled_node):
|
||||
try:
|
||||
new_node = context.evaluator.grammar.parse(
|
||||
_compatibility.unicode(evaled_node.get_safe_value()),
|
||||
_compatibility.force_unicode(evaled_node.get_safe_value()),
|
||||
start_symbol='eval_input',
|
||||
error_recovery=False
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user