[Debian-astro-maintainers] Bug#1085601: gavodachs: Python SyntaxWarning
Graham Inggs
ginggs at debian.org
Mon Oct 21 09:39:41 BST 2024
Source: gavodachs
Version: 2.9.1+dfsg-1
User: debian-python at lists.debian.org
Usertags: syntaxwarning
Hi Maintainer
The SyntaxWarning below were emitted when this package was tested with
pipuarts[1].
Regards
Graham
[1] https://piuparts.debian.org/sid/source/g/gavodachs.html
Setting up python3-gavo-utils (2.9.1+dfsg-1) ...
/usr/lib/python3/dist-packages/gavo/utils/misctricks.py:36:
SyntaxWarning: invalid escape sequence '\d'
BIBCODE_PATTERN = re.compile("[012]\d\d\d\w[^ ]{14}$")
/usr/lib/python3/dist-packages/gavo/utils/misctricks.py:578:
SyntaxWarning: invalid escape sequence '\w'
cacheName = os.path.join(cacheDir, re.sub("[^\w]+", "", url)+".cache")
/usr/lib/python3/dist-packages/gavo/utils/pgsphere.py:42:
SyntaxWarning: invalid escape sequence '\s'
_TRAILING_ZEROES = re.compile("0+(\s|$)")
/usr/lib/python3/dist-packages/gavo/utils/pgsphere.py:197:
SyntaxWarning: invalid escape sequence '\('
pattern = re.compile("<(\([^)]*\))\s*,\s*([0-9.e-]+)>")
/usr/lib/python3/dist-packages/gavo/utils/pgsphere.py:297:
SyntaxWarning: invalid escape sequence '\('
pattern = re.compile("\([^)]+\)")
/usr/lib/python3/dist-packages/gavo/utils/pgsphere.py:396:
SyntaxWarning: invalid escape sequence '\('
pattern = re.compile("\([^()]+\)")
/usr/lib/python3/dist-packages/gavo/utils/texttricks.py:36:
SyntaxWarning: invalid escape sequence '\d'
dateRE = re.compile("\d\d\d\d-\d\d-\d\d$")
/usr/lib/python3/dist-packages/gavo/utils/texttricks.py:37:
SyntaxWarning: invalid escape sequence '\d'
datetimeRE = re.compile("\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ?$")
/usr/lib/python3/dist-packages/gavo/utils/texttricks.py:76:
SyntaxWarning: invalid escape sequence '\s'
aStr = re.sub("\s+", " ", aStr)
/usr/lib/python3/dist-packages/gavo/utils/texttricks.py:90:
SyntaxWarning: invalid escape sequence '\s'
aStr = re.sub("\s+", " ", aStr)
/usr/lib/python3/dist-packages/gavo/utils/texttricks.py:229:
SyntaxWarning: invalid escape sequence '\s'
if mat := re.match("^\s*", codeLines[0]):
/usr/lib/python3/dist-packages/gavo/utils/typeconversions.py:64:
SyntaxWarning: invalid escape sequence '\['
parts = re.findall("[\[(](\d*|\*)[\])]", subscript)
Setting up python3-gavo-stc (2.9.1+dfsg-1) ...
/usr/lib/python3/dist-packages/gavo/stc/tapstc.py:236:
SyntaxWarning: invalid escape sequence '\s'
simpleStatement = Regex("(?i)\s*"
Setting up python3-gavo-votable (2.9.1+dfsg-1) ...
Setting up python3-gavo (2.9.1+dfsg-1) ...
/usr/lib/python3/dist-packages/gavo/adql/nodes.py:1554:
SyntaxWarning: invalid escape sequence '\['
lastSubscript = re.search("\[[0-9]*\]$", childInfo.type)
/usr/lib/python3/dist-packages/gavo/base/activetags.py:241:
SyntaxWarning: invalid escape sequence '\s'
"""An event stream that records events, not expanding active tags.
/usr/lib/python3/dist-packages/gavo/base/attrdef.py:277:
SyntaxWarning: invalid escape sequence '\s'
return re.sub("\s+", " ", value.strip())
/usr/lib/python3/dist-packages/gavo/base/config.py:224:
SyntaxWarning: invalid escape sequence '\w'
if not re.match("[A-Za-z][\w]+$", token):
/usr/lib/python3/dist-packages/gavo/base/literals.py:174:
SyntaxWarning: invalid escape sequence '\s'
mat = re.match("(%s)\s*[\s,/]\s*(%s)$"%(utils.floatRE,
/usr/lib/python3/dist-packages/gavo/base/literals.py:181:
SyntaxWarning: invalid escape sequence '\s'
dmsRE = "[+-]?\s*(?:\d+\s+)?(?:\d+\s+)?\d+(?:\.\d*)?"
/usr/lib/python3/dist-packages/gavo/base/literals.py:182:
SyntaxWarning: invalid escape sequence '\s'
mat = re.match("(%s)\s*[\s,/]?\s*(%s)$"%(timeangleRE, dmsRE), soup)
/usr/lib/python3/dist-packages/gavo/base/literals.py:192:
SyntaxWarning: invalid escape sequence '\s'
dmsRE = "[+-]?\s*(?:\d+:)?(?:\d+:)?\d+(?:\.\d*)?"
/usr/lib/python3/dist-packages/gavo/base/literals.py:193:
SyntaxWarning: invalid escape sequence '\s'
mat = re.match("(%s)\s*[\s,/]?\s*(%s)$"%(timeangleRE, dmsRE), soup)
/usr/lib/python3/dist-packages/gavo/base/meta.py:912: SyntaxWarning:
invalid escape sequence '\s'
consecutiveWSPat = re.compile("\s\s+")
/usr/lib/python3/dist-packages/gavo/base/typedmeta.py:31:
SyntaxWarning: invalid escape sequence '\i'
"""A meta value containing a link and optionally a title
/usr/lib/python3/dist-packages/gavo/base/unitconv.py:529:
SyntaxWarning: invalid escape sequence '\.'
"|[1-9][0-9]*(\.[0-9]+)?([eE][+-]?[0-9]+)?")
/usr/lib/python3/dist-packages/gavo/base/valuemappers.py:233:
SyntaxWarning: invalid escape sequence '\w'
preName = re.sub("[^\w]+", "x", (getattr(field, "name", None)
/usr/lib/python3/dist-packages/gavo/base/xmlstruct.py:25:
SyntaxWarning: invalid escape sequence '\s'
ALL_WHITESPACE = re.compile("\s*$")
/usr/lib/python3/dist-packages/gavo/dm/common.py:71: SyntaxWarning:
invalid escape sequence '\w'
mat = re.match("([\w_-]+):(?:([\w_-]+)\.)?([\w_-]+)", typename)
/usr/lib/python3/dist-packages/gavo/dm/sil.py:23: SyntaxWarning:
invalid escape sequence '\w'
noQuotesOkRE = re.compile("[\w_.]+$")
/usr/lib/python3/dist-packages/gavo/grammars/binarygrammar.py:59:
SyntaxWarning: invalid escape sequence '\d'
formatCode = parsetricks.Regex("\d+s|[bBhHiIqQfd]"
/usr/lib/python3/dist-packages/gavo/grammars/binarygrammar.py:114:
SyntaxWarning: invalid escape sequence '\s'
re.sub("\s+", " ", self.content_),
/usr/lib/python3/dist-packages/gavo/grammars/common.py:243:
SyntaxWarning: invalid escape sequence '\_'
"""Mapping of names, specified in long or short forms.
/usr/lib/python3/dist-packages/gavo/grammars/directgrammar.py:626:
SyntaxWarning: invalid escape sequence '\d'
mat = re.match("(\d*)(.)$", format)
/usr/lib/python3/dist-packages/gavo/grammars/directgrammar.py:738:
SyntaxWarning: invalid escape sequence '\d'
mat = re.match("(\d*)(.)$", format)
/usr/lib/python3/dist-packages/gavo/grammars/freeregrammar.py:70:
SyntaxWarning: invalid escape sequence '\.'
"""A grammar allowing "free" regular expressions to parse a document.
/usr/lib/python3/dist-packages/gavo/grammars/mysqldumpgrammar.py:21:
SyntaxWarning: invalid escape sequence '\('
mat = re.search("CREATE TABLE `([^`]*)` \(", dump)
/usr/lib/python3/dist-packages/gavo/grammars/odbcgrammar.py:22:
SyntaxWarning: invalid escape sequence '\s'
"""A generator of ODBC queries.
/usr/lib/python3/dist-packages/gavo/grammars/uniongrammar.py:49:
SyntaxWarning: invalid escape sequence '\.'
"""A grammar using one of a sequence of grammars to parse its sources.
/usr/lib/python3/dist-packages/gavo/helpers/anet.py:1:
SyntaxWarning: invalid escape sequence '\*'
"""
/usr/lib/python3/dist-packages/gavo/helpers/copying.py:74:
SyntaxWarning: invalid escape sequence '\d'
"""returns the highest index of ??\d+-formed names in destBase.
/usr/lib/python3/dist-packages/gavo/helpers/fitstricks.py:374:
SyntaxWarning: invalid escape sequence '\w'
mat = re.search("GAVO DaCHS template used: (\w+)", card)
/usr/lib/python3/dist-packages/gavo/helpers/testhelpers.py:620:
SyntaxWarning: invalid escape sequence '\s'
'(xmlns(:[a-z0-9]+)?="[^"]*"\s*)',
/usr/lib/python3/dist-packages/gavo/helpers/testhelpers.py:622:
SyntaxWarning: invalid escape sequence '\s'
'(xsi:schemaLocation="[^"]*"\s*)']))
/usr/lib/python3/dist-packages/gavo/helpers/testhelpers.py:636:
SyntaxWarning: invalid escape sequence '\s'
return re.sub("\s+", " ",
/usr/lib/python3/dist-packages/gavo/protocols/oaiclient.py:660:
SyntaxWarning: invalid escape sequence '\w'
"""adds XML namespace declarations for namespace prefixes we
/usr/lib/python3/dist-packages/gavo/protocols/oaiclient.py:678:
SyntaxWarning: invalid escape sequence '\w'
prefixesUsed |= set(re.findall("([a-zA-Z_-][\w-]*):[a-zA-Z_]",
/usr/lib/python3/dist-packages/gavo/protocols/oaiclient.py:685:
SyntaxWarning: invalid escape sequence '\w'
return re.sub("<([\w:-]+)", r"<\1 "+nsDecls, xmlLiteral, 1)
/usr/lib/python3/dist-packages/gavo/registry/identifiers.py:31:
SyntaxWarning: invalid escape sequence '\w'
_idPattern = re.compile("ivo://(\w[^!;:@%$,/]+)(/[^?#]*)?")
/usr/lib/python3/dist-packages/gavo/rsc/dbtable.py:671:
SyntaxWarning: invalid escape sequence '\q'
"""runs query within this table's connection.
/usr/lib/python3/dist-packages/gavo/rscdef/common.py:635:
SyntaxWarning: invalid escape sequence '\i'
"""returns absath relative to the DaCHS inputsDir.
/usr/lib/python3/dist-packages/gavo/rscdef/regtest.py:142:
SyntaxWarning: invalid escape sequence '\w'
return set(re.sub("[^\w\s]+", "", s).lower().split())
/usr/lib/python3/dist-packages/gavo/rscdef/tabledef.py:123:
SyntaxWarning: invalid escape sequence '\w'
self.name = "%s"%(re.sub("[^\w]+", "_", "_".join(self.columns)))
/usr/lib/python3/dist-packages/gavo/rscdef/tabledef.py:165:
SyntaxWarning: invalid escape sequence '\w'
re.search("\w+", phrase).group(0).lower(), 0)
/usr/lib/python3/dist-packages/gavo/svcs/standardcores.py:437:
SyntaxWarning: invalid escape sequence '\*'
"""A core executing a pre-specified query with fancy conditions.
/usr/lib/python3/dist-packages/gavo/user/admin.py:347:
SyntaxWarning: invalid escape sequence '\s'
return re.sub("\s+", " ", s)
/usr/lib/python3/dist-packages/gavo/user/admin.py:400:
SyntaxWarning: invalid escape sequence '\w'
mat = re.match("(#?)(\w+)\s+=\s+(.*)", propLn)
/usr/lib/python3/dist-packages/gavo/user/errhandle.py:24:
SyntaxWarning: invalid escape sequence '\s'
verbatimRE = re.compile("\s")
/usr/lib/python3/dist-packages/gavo/user/mkrd.py:61: SyntaxWarning:
invalid escape sequence '\d'
mat = re.match("(\d*)P(.)\(\d*\)$", format)
/usr/lib/python3/dist-packages/gavo/user/mkrd.py:68: SyntaxWarning:
invalid escape sequence '\d'
mat = re.match("(\d*)(.)$", format)
/usr/lib/python3/dist-packages/gavo/user/mkrd.py:93: SyntaxWarning:
invalid escape sequence '\d'
"|CROTA.*|RADECSYS|AP?_\d_\d|BP?_\d_\d|LATPOLE|LONPOLE")
/usr/lib/python3/dist-packages/gavo/user/mkrd.py:437: SyntaxWarning:
invalid escape sequence '\s'
elif self.tableBorderPat.match(ln) or re.match("\s*Bytes", ln):
/usr/lib/python3/dist-packages/gavo/web/common.py:221:
SyntaxWarning: invalid escape sequence '\['
mat = re.match("\[([^]]*)\](.*)", configKey)
/usr/lib/python3/dist-packages/gavo/web/examplesrender.py:59:
SyntaxWarning: invalid escape sequence '\W'
self.htmlId = re.sub("\W", "", self.title)
/usr/lib/python3/dist-packages/gavo/web/metarender.py:65:
SyntaxWarning: invalid escape sequence '\d'
int(re.sub("[^\d]+", "", creationDate.isoformat())))
/usr/lib/python3/dist-packages/gavo/web/metarender.py:66:
SyntaxWarning: invalid escape sequence '\w'
label = "vo:"+re.sub("[^\w]", "_", label)
/usr/lib/python3/dist-packages/gavo/web/metarender.py:652:
SyntaxWarning: invalid escape sequence '\g'
loader = formal.XMLString("""
More information about the Debian-astro-maintainers
mailing list