From 2f959d41ab020772c9555076f030971388059e49 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Mon, 1 Jun 2020 22:58:31 +0530 Subject: [PATCH] Fix deprecation warnings due to invalid escape sequences. (#489) --- petl/util/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/petl/util/base.py b/petl/util/base.py index 65d59c03..22d7acf7 100644 --- a/petl/util/base.py +++ b/petl/util/base.py @@ -659,7 +659,7 @@ def expr(s): """ - prog = re.compile('\{([^}]+)\}') + prog = re.compile(r'\{([^}]+)\}') def repl(matchobj): return "rec['%s']" % matchobj.group(1)