[Pkg-privacy-maintainers] Bug#1070349: onionshare-cli: common.py: SyntaxWarning: invalid escape sequence '\s'

Paul Wise pabs at debian.org
Sat May 4 06:57:12 BST 2024


Package: onionshare-cli
Version: 2.6.2-1
Severity: normal
Usertags: warnings
User: debian-python at lists.debian.org
Usertags: python3.12

Upgrading onionshare-cli gives Python 3.12 warnings,
the right way to fix this is to use raw strings:

https://docs.python.org/3/library/re.html#raw-string-notation

   Setting up onionshare-cli (2.6.2-1) ...
   /usr/lib/python3/dist-packages/onionshare_cli/common.py:487: SyntaxWarning: invalid escape sequence '\s'
     "(obfs4\s+)?(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]):([0-9]+)(\s+)([A-Z0-9]+)(.+)$"
   /usr/lib/python3/dist-packages/onionshare_cli/common.py:490: SyntaxWarning: invalid escape sequence '\s'
     "(obfs4\s+)?\[(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\]:[0-9]+\s+[A-Z0-9]+(.+)$"
   /usr/lib/python3/dist-packages/onionshare_cli/common.py:493: SyntaxWarning: invalid escape sequence '\s'
     "(meek_lite)(\s)+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+)(\s)+([0-9A-Z]+)(\s)+url=(.+)(\s)+front=(.+)"
   /usr/lib/python3/dist-packages/onionshare_cli/common.py:496: SyntaxWarning: invalid escape sequence '\s'
     "(snowflake)(\s)+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+)(\s)+([0-9A-Z]+)"

-- System Information:
Debian Release: trixie/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.7.12-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages onionshare-cli depends on:
ii  cython3                   3.0.10+dfsg-5
ii  python3                   3.11.8-1
ii  python3-cffi              1.16.0-2
ii  python3-click             8.1.7-1
ii  python3-colorama          0.4.6-4
ii  python3-eventlet          0.35.1-1
ii  python3-flask             3.0.3-1
ii  python3-flask-compress    1.4.0-5
ii  python3-flask-socketio    5.3.6-2
ii  python3-gevent            24.2.1-0.1+b1
ii  python3-gevent-websocket  0.10.1-5
ii  python3-nacl              1.5.0-4
ii  python3-packaging         24.0-1
ii  python3-pkg-resources     68.1.2-2
ii  python3-psutil            5.9.8-2
ii  python3-qrcode            7.4.2-5
ii  python3-requests          2.31.0+dfsg-1
ii  python3-socks             1.7.1+dfsg-1
ii  python3-stem              1.8.2-1
ii  python3-unidecode         1.3.8-1
ii  python3-urllib3           1.26.18-2
ii  python3-waitress          2.1.2-2
ii  python3-werkzeug          3.0.2-1
ii  python3-wheel             0.43.0-1
ii  tor                       0.4.8.11-1

Versions of packages onionshare-cli recommends:
ii  obfs4proxy  0.0.14-1+b7

onionshare-cli suggests no packages.

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-privacy-maintainers/attachments/20240504/68c8eb84/attachment.sig>


More information about the Pkg-privacy-maintainers mailing list