Skip to content

Commit

Permalink
Only mention \r once in escaping code
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Sep 6, 2018
1 parent c422d60 commit b05e83d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/daf/butler/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ def _splitKeys(self, key):
if escaped in key:
# Replace with a character that won't be in the string
temp = "\r"
if temp in key or d == "\r":
raise ValueError("Can not use carriage return character in hierarchical key or as"
if temp in key or d == temp:
raise ValueError(f"Can not use character {temp!r} in hierarchical key or as"
" delimiter if escaping the delimiter")
key = key.replace(escaped, temp)
hierarchy = key.split(d)
Expand Down

0 comments on commit b05e83d

Please sign in to comment.