1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
Description: fix multiple syntax warnings upon package installation.
This fixes the following messages:
.
Setting up python3-pynwb (2.8.2-1) ...
/usr/lib/python3/dist-packages/pynwb/nwb-schema/docs/format/source/conf.py:224: SyntaxWarning: invalid escape sequence '\s'
"""
/usr/lib/python3/dist-packages/pynwb/nwb-schema/docs/storage/source/conf.py:195: SyntaxWarning: invalid escape sequence '\s'
'preamble': '\setcounter{secnumdepth}{6}',
/usr/lib/python3/dist-packages/pynwb/nwb-schema/hdmf-common-schema/docs/source/conf.py:220: SyntaxWarning: invalid escape sequence '\s'
"""
Author: Étienne Mollier <emollier@debian.org>
Forwarded: no
Last-Update: 2024-09-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- pynwb.orig/src/pynwb/nwb-schema/docs/format/source/conf.py
+++ pynwb/src/pynwb/nwb-schema/docs/format/source/conf.py
@@ -221,7 +221,7 @@
# Additional stuff for the LaTeX preamble.
'preamble':
-"""
+r"""
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{6}
\\usepackage{enumitem}
--- pynwb.orig/src/pynwb/nwb-schema/docs/storage/source/conf.py
+++ pynwb/src/pynwb/nwb-schema/docs/storage/source/conf.py
@@ -192,7 +192,7 @@
'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
-'preamble': '\setcounter{secnumdepth}{6}',
+'preamble': r'\setcounter{secnumdepth}{6}',
}
# Grouping the document tree into LaTeX files. List of tuples
--- pynwb.orig/src/pynwb/nwb-schema/hdmf-common-schema/docs/source/conf.py
+++ pynwb/src/pynwb/nwb-schema/hdmf-common-schema/docs/source/conf.py
@@ -217,7 +217,7 @@
# Additional stuff for the LaTeX preamble.
'preamble':
-"""
+r"""
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{6}
\\usepackage{enumitem}
|