From 931ad20f1de29a45f6b0dae9dd579ff6c0851bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20S=C3=A1nchez=20de=20Le=C3=B3n=20Peque?= Date: Wed, 9 Oct 2019 00:50:56 +0200 Subject: [PATCH] Get rid of `re` deprecation warnings --- pvlib/iotools/tmy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvlib/iotools/tmy.py b/pvlib/iotools/tmy.py index a3860c352d..f17908f731 100644 --- a/pvlib/iotools/tmy.py +++ b/pvlib/iotools/tmy.py @@ -468,7 +468,7 @@ def _read_tmy2(string, columns, hdr_columns, fname): continue # Read the next increment from the marker list - increment = int(re.findall('\d+', marker)[0]) + increment = int(re.findall(r'\d+', marker)[0]) next_cursor = cursor + increment # Extract the value from the line in the file