Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Fix deprecation warnings due to invalid escape sequences.
Browse files Browse the repository at this point in the history
  • Loading branch information
tirkarthi committed May 14, 2020
1 parent 16feba9 commit c2a11c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uproot_methods/profiles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import re

def transformer(name):
m = re.match("^([a-zA-Z_][a-zA-Z_0-9]*)(\.[a-zA-Z_][a-zA-Z_0-9]*)*$", name)
m = re.match(r"^([a-zA-Z_][a-zA-Z_0-9]*)(\.[a-zA-Z_][a-zA-Z_0-9]*)*$", name)
if m is None:
raise ValueError("profile name must match \"identifier(.identifier)*\"")
return getattr(importlib.import_module("uproot_methods.profiles." + m.string), "transform")

0 comments on commit c2a11c1

Please sign in to comment.