diff options
author | 2021-01-18 23:32:49 -0800 | |
---|---|---|
committer | 2021-01-18 23:33:33 -0800 | |
commit | 030e2fc8ba6cf6c28b582c9ccbb5343ece887776 (patch) | |
tree | 2df1de615f3ae017bcf48b9e19a2b89cf7289732 | |
parent | tox.ini: fix pylint command (diff) | |
download | portage-030e2fc8ba6cf6c28b582c9ccbb5343ece887776.tar.gz portage-030e2fc8ba6cf6c28b582c9ccbb5343ece887776.tar.bz2 portage-030e2fc8ba6cf6c28b582c9ccbb5343ece887776.zip |
repoman: fix DeprecationWarning: invalid escape sequence \s
Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r-- | repoman/lib/repoman/modules/scan/metadata/pkgmetadata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repoman/lib/repoman/modules/scan/metadata/pkgmetadata.py b/repoman/lib/repoman/modules/scan/metadata/pkgmetadata.py index c1ba8e9f4..2e85cc3b9 100644 --- a/repoman/lib/repoman/modules/scan/metadata/pkgmetadata.py +++ b/repoman/lib/repoman/modules/scan/metadata/pkgmetadata.py @@ -101,7 +101,7 @@ class PkgMetadata(ScanBase, USEFlagChecks): indentation_chars = Counter() for l in etree.tostring(_metadata_xml).splitlines(): - indentation_chars.update(re.match(b"\s*", l).group(0)) + indentation_chars.update(re.match(rb"\s*", l).group(0)) if len(indentation_chars) > 1: self.qatracker.add_error("metadata.warning", "%s/metadata.xml: %s" % (xpkg, "inconsistent use of tabs and spaces in indentation") |