Refactor some things regarding Python 2 support

This commit is contained in:
Dave Halter committed 2017-12-27 02:09:58 +01:00
1 parent 7e063ff7af
commit a8d3c46e9d
4 files changed
+51 -27

No files matched your search

+1 -1
View File
@@ -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
)