Fix Python code generator to correctly escape strings
A string that contained escape symbols was not correctly escaped when generating the Python code for the selection. This could cause selection operations to fail to compile.
This commit is contained in:
@@ -194,7 +194,7 @@ class Node (object):
|
||||
prop = '{\"%s\"}' % prop.replace(
|
||||
',', '\",\"').replace(ARROW, '\":\"').replace(' ', '')
|
||||
else: # Selection
|
||||
prop = '\"%s\"' % prop
|
||||
prop = repr(prop)
|
||||
|
||||
return '%s.%s(%s)' % (self.child.toPython(), op_functions[self.name], prop)
|
||||
return self.name
|
||||
|
Reference in New Issue
Block a user