Skip to content

Commit

Permalink
Testing paths in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
AryazE committed Nov 9, 2023
1 parent 92dc51e commit 010fa8e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/dynapyt/instrument/CodeInstrumenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,13 @@ def __wrap_in_lambda(self, original_node, updated_node):

def __as_string(self, s):
if "\\" in s:
s = "r" + s
raw = "r"
else:
raw = ""
if hasattr(self, "quote") and self.quote == '"':
return "'" + s + "'"
return raw + "'" + s + "'"
else:
return '"' + s + '"'
return raw + '"' + s + '"'

def visit_Annotation(self, node):
return False
Expand Down

0 comments on commit 010fa8e

Please sign in to comment.