You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by mt...@apache.org on 2026/03/26 10:01:29 UTC
(age) 10/20: Convert string to raw string to remove invalid escape sequence warning (#2267)
This is an automated email from the ASF dual-hosted git repository.
mtaha pushed a commit to branch PG16
in repository https://gitbox.apache.org/repos/asf/age.git
commit 42ef859ce25640f15bb37650b05607f52317dc40
Author: jsell-rh <js...@redhat.com>
AuthorDate: Thu Dec 11 10:56:37 2025 -0500
Convert string to raw string to remove invalid escape sequence warning (#2267)
- Changed '\s' to r'\s'
---
drivers/python/age/age.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/python/age/age.py b/drivers/python/age/age.py
index 817cc6e5..b1aa8215 100644
--- a/drivers/python/age/age.py
+++ b/drivers/python/age/age.py
@@ -26,7 +26,7 @@ from .builder import parseAgeValue
_EXCEPTION_NoConnection = NoConnection()
_EXCEPTION_GraphNotSet = GraphNotSet()
-WHITESPACE = re.compile('\s')
+WHITESPACE = re.compile(r'\s')
class AgeDumper(psycopg.adapt.Dumper):
@@ -233,3 +233,4 @@ class Age:
# def queryCypher(self, cypherStmt:str, columns:list=None , params:tuple=None) -> psycopg.cursor :
# return queryCypher(self.connection, self.graphName, cypherStmt, columns, params)
+