#1091437 rednotebook: SyntaxWarning: invalid escape sequence

#1091437#5
Date:
2024-12-26 08:26:27 UTC
From:
To:
Hi,

rednotebook emits multiple SyntaxWarning, i noticed this at rednotebook
package upgrade:

/usr/share/rednotebook/rednotebook/external/txt2tags.py:872: SyntaxWarning: invalid escape sequence '\s'
  'title1'               : '~A~\section*{\a}'     ,
/usr/share/rednotebook/rednotebook/external/txt2tags.py:878: SyntaxWarning: invalid escape sequence '\s'
  'numtitle1'            : '\n~A~\section{\a}'      ,
/usr/share/rednotebook/rednotebook/external/txt2tags.py:913: SyntaxWarning: invalid escape sequence '\l'
  'bar2'                 : '\\rule{\linewidth}{1mm}',
/usr/share/rednotebook/rednotebook/external/txt2tags.py:1323: SyntaxWarning: invalid escape sequence '\('
  'listItemOpen'          : '.IP \(bu 3\n',
/usr/share/rednotebook/rednotebook/external/txt2tags.py:2738: SyntaxWarning: invalid escape sequence '\.'
  basename = re.sub('\.(txt|t2t)$','',infile)
/usr/share/rednotebook/rednotebook/external/txt2tags.py:2929: SyntaxWarning: invalid escape sequence '\s'
  cfgregex  = re.compile("""
/usr/share/rednotebook/rednotebook/external/txt2tags.py:2937: SyntaxWarning: invalid escape sequence '\s'
  prepostregex = re.compile("""
/usr/share/rednotebook/rednotebook/external/txt2tags.py:2952: SyntaxWarning: invalid escape sequence '\s'
  guicolors = re.compile("^([^\s]+\s+){3}[^\s]+") # 4 tokens
/usr/share/rednotebook/rednotebook/external/txt2tags.py:2977: SyntaxWarning: invalid escape sequence '\s'
  value = re.split('\s+', value)
/usr/share/rednotebook/rednotebook/external/txt2tags.py:3452: SyntaxWarning: invalid escape sequence '\|'
  m = re.search('\a(\|+)$', cell)
/usr/share/rednotebook/rednotebook/external/txt2tags.py:3559: SyntaxWarning: invalid escape sequence '\|'
  m = re.search(' (\|+) *$', line)
/usr/share/rednotebook/rednotebook/external/txt2tags.py:3565: SyntaxWarning: invalid escape sequence '\|'
  line = re.sub(' (\|+)\| ', '\a\\1 | ', line)
/usr/share/rednotebook/rednotebook/external/txt2tags.py:3571: SyntaxWarning: invalid escape sequence '\|'
  ret['cells'] = [re.sub('\a\|+$','',x) for x in ret['cells']]
/usr/share/rednotebook/rednotebook/external/txt2tags.py:3868: SyntaxWarning: invalid escape sequence '\s'
  re.match('^\s*<center>.*</center>\s*$', lines[0]):
/usr/share/rednotebook/rednotebook/external/txt2tags.py:4151: SyntaxWarning: invalid escape sequence '\.'
  elif flag == 'F': x = re.sub('\.[^.]*$','',info['name'])
/usr/share/rednotebook/rednotebook/external/txt2tags.py:4155: SyntaxWarning: invalid escape sequence '\.'
  elif flag == 'e': x = re.search('.(\.([^.]+))?$', info['name']).group(2) or ''
/usr/share/rednotebook/rednotebook/external/txt2tags.py:4382: SyntaxWarning: invalid escape sequence '\.'
  val = [re.sub('(?i)\.sty$','',x) for x in val]
/usr/share/rednotebook/rednotebook/external/txt2tags.py:4536: SyntaxWarning: invalid escape sequence '\#'
  txt = re.sub('<','<\#60>',txt)
/usr/share/rednotebook/rednotebook/external/txt2tags.py:4583: SyntaxWarning: invalid escape sequence '\ '
  "Replace any Escape Char \ with a text mask (Input: str or list)"
/usr/share/rednotebook/rednotebook/external/txt2tags.py:4589: SyntaxWarning: invalid escape sequence '\ '
  "Undo the Escape char \ masking (Input: str or list)"
/usr/share/rednotebook/rednotebook/external/txt2tags.py:4923: SyntaxWarning: invalid escape sequence '\s'
  if re.match('^\s+$', rest):


regards

#1091437#10
Date:
2024-12-26 11:32:44 UTC
From:
To:
Hi,

Yes, busy Xmas error by me. The update to 3.9 of txt2tags.py that fixes this
issue did not make it into 2.37. I will correct this with an update in the next
few days.

Regards

Phil

#1091437#15
Date:
2024-12-27 12:34:06 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rednotebook, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1091437@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Phil Wyett <philip.wyett@kathenas.org> (supplier of updated rednotebook package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 27 Dec 2024 12:01:56 +0000
Source: rednotebook
Architecture: source
Version: 2.37+ds-2
Distribution: unstable
Urgency: medium
Maintainer: Phil Wyett <philip.wyett@kathenas.org>
Changed-By: Phil Wyett <philip.wyett@kathenas.org>
Closes: 1091437
Changes:
 rednotebook (2.37+ds-2) unstable; urgency=medium
 .
   * Refactor patch for python3 and fix escape sequences. (Closes: #1091437)
Checksums-Sha1:
 4d8656aec0951079c85f9e8aa10422adcf973dfb 1921 rednotebook_2.37+ds-2.dsc
 3c791da2cb38435d1ed3b2d976e262642bddca6d 70908 rednotebook_2.37+ds-2.debian.tar.xz
 efcc133b3a1fe7cc6a2ecdc142fccdac2be3ef1e 7071 rednotebook_2.37+ds-2_amd64.buildinfo
Checksums-Sha256:
 82b56ad275dabd5e879fe5db3d612cb493d20cfdf26687ba26efcd89439064b4 1921 rednotebook_2.37+ds-2.dsc
 2599aef08ca20de94fee0c0da18d390df52a10d768b89a5ef2f207e4dd6533e8 70908 rednotebook_2.37+ds-2.debian.tar.xz
 13b467f612b266e48fd655e98e8ebb59da2b2eae6121e3f4a688f17068b18beb 7071 rednotebook_2.37+ds-2_amd64.buildinfo
Files:
 a2e1928960c50dd3318fc21a577e3b86 1921 text optional rednotebook_2.37+ds-2.dsc
 80ca5a7a41356cc1f8339dd86cffffc4 70908 text optional rednotebook_2.37+ds-2.debian.tar.xz
 85d195eb88e930351f801cfc27491507 7071 text optional rednotebook_2.37+ds-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEcKCsRax3nv6E9jrtckqptS8CTIsFAmdumScACgkQckqptS8C
TIvdwg/7Bwe0RmlSGLgZKo72XI0pOEUW/9bj5zCw8epDNMcA9hgT0RV2YWeq70qs
mnlyJSbRm3WQ+OriZT3rE9FGJ3KPY6C+KkMgsj0sX+EQ3p7J4IaJd3AFWpfQewDg
sYsdQqGi+T++Jg9g9HXf/o5lR4AOPl2LhvZ124c/QXDfusFEVnbNT/+pr5ZYNfC+
286KMkF64FSOtwH8vMECGvF4cEWZTRyAXd6ATYzNo+rh8WliGtuTrfk4/28OKQCJ
bKrrwoyg9yV0pJULZnjOyVOkrU7v8JXxBgqrLC4whFH2VgmTzjZ+cwjmCn/OQNsX
NuASedzyRwvpkzTHgeyUO3/A42qweGXaMx/KkIFRZn6HkeUbBLhVW6wC+3BtNFcD
/w9yv+D5EZXZvZ58aaOmyxGUP9YZvxjogJwdIGSG8YakjhR6itRxnxQWPO7ktl1M
K0C47sfIKXgimyivXKuV4QVnbc3GA7Ic1GJamH8hRzN/kfaMxzU8NfJgy997+kyf
12ZpgCgyMQiKr8a0+Rbe1ZXhs2hWMljIzm2tKWlKdecku/31YWfw0q973YO3jLW3
0td2zG+covnoMgN7XALLrT/ReCKN2vfRWdlF6YGL1MAk4+aBkaTB+1XZUfFdejo6
ELwgJKdvHVfEFaqR6bYLazi25Z6kGGxxG0h8Ae7RDLqFf+zUdkc=
=ZcjA
-----END PGP SIGNATURE-----