From 630010c27b573ee6cc25c3a492734797cb3ea236 Mon Sep 17 00:00:00 2001 From: Fabian Henze <32638720+henzef@users.noreply.github.com> Date: Thu, 17 Sep 2020 16:22:15 +0200 Subject: [PATCH] Fix DeprecationWarning in jpype version check This fixes "DeprecationWarning: invalid escape sequence \d". --- jaydebeapi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jaydebeapi/__init__.py b/jaydebeapi/__init__.py index a890c3d..67bf06c 100644 --- a/jaydebeapi/__init__.py +++ b/jaydebeapi/__init__.py @@ -185,7 +185,7 @@ def _jdbc_connect_jpype(jclassname, url, driver_args, jars, libs): global old_jpype if hasattr(jpype, '__version__'): try: - ver_match = re.match('\d+\.\d+', jpype.__version__) + ver_match = re.match(r'\d+\.\d+', jpype.__version__) if ver_match: jpype_ver = float(ver_match.group(0)) if jpype_ver < 0.7: