DNS/Base.py:418: SyntaxWarning: invalid escape sequence '\s'

Bug #2051640 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
py3dns (Ubuntu)
New
Undecided
Unassigned

Bug Description

When upgrading python3-sdk the following warning appeared:

/usr/lib/python3/dist-packages/DNS/Base.py:418: SyntaxWarning: invalid escape sequence '\s'
  res_re = re.compile('^\s+nameserver[]0-9[]*\s*\:\s*(\S+)$')

The regular expression should be written with a leading r:

r'^\s+nameserver[]0-9[]*\s*\:\s*(\S+)$'

Best regards

Heinrich

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: python3-dns 4.0.0-1ubuntu1
ProcVersionSignature: Ubuntu 6.6.0-14.14-generic 6.6.3
Uname: Linux 6.6.0-14-generic x86_64
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Tue Jan 30 07:36:58 2024
Dependencies:

InstallationDate: Installed on 2021-07-01 (943 days ago)
InstallationMedia: Kubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
PackageArchitecture: all
SourcePackage: py3dns
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Heinrich Schuchardt (xypron) wrote :
tags: added: fr-6484
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.