From 1af39418175f6dd5796b2342af0de3a62350bcf2 Mon Sep 17 00:00:00 2001 From: JGoepelEmn <96249481+JGoepelEmn@users.noreply.github.com> Date: Thu, 16 Dec 2021 10:05:27 -0500 Subject: [PATCH] Address DeprecationWarning for escapes since 3.6 Escape sequences \+ \* \( \) and \/ are invalid and produce a DeprecationWarning as of Python version 3.6. --- pyad/pyadutils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyad/pyadutils.py b/pyad/pyadutils.py index 9b7f933..a7a381f 100644 --- a/pyad/pyadutils.py +++ b/pyad/pyadutils.py @@ -124,11 +124,11 @@ def generate_list(input): def escape_path(path): escapes = ( - ('\+','+'), - ('\*','*'), - ('\(','('), - ('\)',')'), - ('\/','/'), + ('\\+','+'), + ('\\*','*'), + ('\\(','('), + ('\\)',')'), + ('\\/','/'), ('\\,',',,'), ('\\','\\5c'), ('*','\\2a'),