Skip to content

Commit

Permalink
Remove old function
Browse files Browse the repository at this point in the history
  • Loading branch information
pradal committed Oct 22, 2024
1 parent 2b4359d commit 90cb52c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/pycropml/transpiler/codeGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,21 +153,6 @@ def safe_double(self, node):
self.write(f'"{escaped_value}"')



def safe_double2(self, node):
value = node.value
if isinstance(value, bytes):
value = value.decode()

if '"' in value:
s = '%s' % value.replace('"', '')
elif "'" in value:
s = '%s' % value.replace("'", '')
else:
s = '%s' % value

self.write(s)

def visit_simpleCall(self, node):
self.visit(node.value)
self.write(" %s "%node.op)
Expand Down

0 comments on commit 90cb52c

Please sign in to comment.