diff options
Diffstat (limited to 'debian/patches/fix-python3.12-warning.patch')
-rw-r--r-- | debian/patches/fix-python3.12-warning.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/fix-python3.12-warning.patch b/debian/patches/fix-python3.12-warning.patch new file mode 100644 index 0000000..60e532e --- /dev/null +++ b/debian/patches/fix-python3.12-warning.patch @@ -0,0 +1,18 @@ +Description: fix invalid escape sequence in less prompt. +Author: Étienne Mollier <emollier@debian.org> +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064209 +Forwarded: https://lists.sr.ht/~lioploum/offpunk-devel/patches/49706 +Last-Update: 2024-03-17 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- offpunk.orig/opnk.py ++++ offpunk/opnk.py +@@ -49,7 +49,7 @@ + # are there on purpose (surch in asciiart) + #--incsearch : incremental search starting rev581 + def less_cmd(file, histfile=None,cat=False,grep=None): +- less_prompt = "page %%d/%%D- lines %%lb/%%L - %%Pb\%%" ++ less_prompt = "page %%d/%%D- lines %%lb/%%L - %%Pb\\%%" + if less_version >= 581: + less_base = "less --incsearch --save-marks -~ -XRfWiS -P \"%s\""%less_prompt + elif less_version >= 572: |