Skip to content

Commit

Permalink
Removes unnecessary .replace() leftover from prior version.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlratzel committed Mar 13, 2024
1 parent 82bce8f commit f844320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/nx-cugraph/_nx_cugraph/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def dq_repr(s):
"""Return repr(s) quoted with the double quote preference used by black."""
rs = repr(s)
if rs.startswith("'") and '"' not in rs:
rs = rs.strip("'").replace('"', '\\"')
rs = rs.strip("'")
return f'"{rs}"'
return rs

Expand Down

0 comments on commit f844320

Please sign in to comment.