Skip to content

Commit d4e9b9c

Browse files
jsell-rhMuhammadTahaNaveed
authored andcommitted
Convert string to raw string to remove invalid escape sequence warning (#2267)
- Changed '\s' to r'\s'
1 parent 7432ac6 commit d4e9b9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/python/age/age.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
_EXCEPTION_NoConnection = NoConnection()
2727
_EXCEPTION_GraphNotSet = GraphNotSet()
2828

29-
WHITESPACE = re.compile('\s')
29+
WHITESPACE = re.compile(r'\s')
3030

3131

3232
class AgeDumper(psycopg.adapt.Dumper):
@@ -233,3 +233,4 @@ def cypher(self, cursor:psycopg.cursor, cypherStmt:str, cols:list=None, params:t
233233

234234
# def queryCypher(self, cypherStmt:str, columns:list=None , params:tuple=None) -> psycopg.cursor :
235235
# return queryCypher(self.connection, self.graphName, cypherStmt, columns, params)
236+

0 commit comments

Comments
 (0)