commit:     030e2fc8ba6cf6c28b582c9ccbb5343ece887776
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 19 07:32:49 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Jan 19 07:33:33 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=030e2fc8

repoman: fix DeprecationWarning: invalid escape sequence \s

Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 repoman/lib/repoman/modules/scan/metadata/pkgmetadata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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")

Reply via email to