Author: Daniel Baumann 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')