diff --git a/CHANGELOG.md b/CHANGELOG.md index 89f8754..3aa4beb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## Changelog +- v1.2 + + - Changed + + - Changes to prevent `SyntaxWarning: invalid escape sequence` errors when Python 3.12 is used. + - v1.1 - Changed diff --git a/README.md b/README.md index 5bcc8e4..d4dfe5c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
-## About - v1.1 +## About - v1.2 This is a tool used to de-clutter a list of URLs. As a starting point, I took the amazing tool [uro](https://github.com/s0md3v/uro/) by Somdev Sangwan. But I wanted to change a few things, make some improvements (like deal with GUIDs) and make it more customizable. diff --git a/urless/__init__.py b/urless/__init__.py index f11231d..b6f6120 100644 --- a/urless/__init__.py +++ b/urless/__init__.py @@ -1 +1 @@ -__version__="1.1" +__version__="1.2" diff --git a/urless/urless.py b/urless/urless.py index 9d9ac42..88a039d 100644 --- a/urless/urless.py +++ b/urless/urless.py @@ -32,7 +32,7 @@ REGEX_END = '$' # Regex for a path folder of integer -REGEX_INTEGER = REGEX_START + '\d+' + REGEX_END +REGEX_INTEGER = REGEX_START + r'\d+' + REGEX_END reIntPart = re.compile(REGEX_INTEGER) patternsInt = {} @@ -46,7 +46,7 @@ patternsCustomID = {} # Regex for path of YYYY/MM -REGEX_YYYYMM = '\/[1|2][0|1|9]\\d{2}/[0|1]\\d{1}\/' +REGEX_YYYYMM = r'\/[1|2][0|1|9]\\d{2}/[0|1]\\d{1}\/' reYYYYMM = re.compile(REGEX_YYYYMM) # Regex for path of language code @@ -83,11 +83,11 @@ def writerr(text=''): def showBanner(): write('') - write(colored(' __ _ ____ _ ___ ___ ____ ', 'red')) - write(colored(' | | | | _ \| | / _ \/ __/ __/ ', 'yellow')) - write(colored(' | | | | |_) | || __/\__ \__ \ ', 'green')) - write(colored(' | |_| | _ <| |_\___/\___/___/ ', 'cyan')) - write(colored(' \___/|_| \_\___/', 'magenta')+colored('by Xnl-h4ck3r','white')) + write(colored(r' __ _ ____ _ ___ ___ ____ ', 'red')) + write(colored(r' | | | | _ \| | / _ \/ __/ __/ ', 'yellow')) + write(colored(r' | | | | |_) | || __/\__ \__ \ ', 'green')) + write(colored(r' | |_| | _ <| |_\___/\___/___/ ', 'cyan')) + write(colored(r' \___/|_| \_\___/', 'magenta')+colored('by Xnl-h4ck3r','white')) write('') def getConfig():