From c2a11c1693f68c6322dd9465952a284302d32294 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Thu, 14 May 2020 14:30:56 +0000 Subject: [PATCH] Fix deprecation warnings due to invalid escape sequences. --- uproot_methods/profiles/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uproot_methods/profiles/__init__.py b/uproot_methods/profiles/__init__.py index e7dcb39..681e1eb 100644 --- a/uproot_methods/profiles/__init__.py +++ b/uproot_methods/profiles/__init__.py @@ -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")