Skip to content

Commit

Permalink
MAINT: _cary.py Make regex a raw string (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksunden authored and darienmorrow committed Sep 20, 2018
1 parent 46ff2c3 commit 575959d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WrightTools/collection/_cary.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def from_Cary(filepath, name=None, parent=None, verbose=True):
# chew through all scans
datas = Collection(name=name, parent=parent, edit_local=parent is not None)
for i in range(0, len(header) - 1, 2):
r = re.compile("[ \t\(\)]+")
r = re.compile(r"[ \t\(\)]+")
spl = r.split(columns[i])
ax = spl[0].lower() if len(spl) > 0 else None
units = spl[1].lower() if len(spl) > 1 else None
Expand Down

0 comments on commit 575959d

Please sign in to comment.