diff options
Diffstat (limited to '')
-rw-r--r-- | debian/patches/debian/0001-python3.12-comments.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches/debian/0001-python3.12-comments.patch b/debian/patches/debian/0001-python3.12-comments.patch new file mode 100644 index 0000000..cdee6be --- /dev/null +++ b/debian/patches/debian/0001-python3.12-comments.patch @@ -0,0 +1,33 @@ +Author: Daniel Baumann <daniel.baumann@progress-linux.org> +Description: Marking some comments as raw string literals to avoid warnings with Python 3.12. + In Python 3.12 when using string literals as comments, they need to by syntactically valid, + otherwise a SyntaxWarning instead of the previous DeprecationWarning is shown. + . + Instead of string literals for comments, actual comments (#) should be used. To keep the + diff in Debian small and be less invasive to upstream, raw string literals can be used as + a workaround as escape sequences are not parsed. + +diff -Naurp litecli.orig/litecli/main.py litecli/litecli/main.py +--- litecli.orig/litecli/main.py ++++ litecli/litecli/main.py +@@ -329,7 +329,7 @@ class LiteCli(object): + exit(1) + + def handle_editor_command(self, text): +- """Editor command is any query that is prefixed or suffixed by a '\e'. ++ r"""Editor command is any query that is prefixed or suffixed by a '\e'. + The reason for a while loop is because a user might edit a query + multiple times. For eg: + +diff -Naurp litecli.orig/litecli/packages/parseutils.py litecli/litecli/packages/parseutils.py +--- litecli.orig/litecli/packages/parseutils.py ++++ litecli/litecli/packages/parseutils.py +@@ -17,7 +17,7 @@ cleanup_regex = { + + + def last_word(text, include="alphanum_underscore"): +- """ ++ r""" + Find the last word in a sentence. + + >>> last_word('abc') |