commit: 219e9bed020b67e78e96c5cded6ece7f7f68fb06
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 9 04:57:14 2019 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat Nov 9 04:59:15 2019 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=219e9bed
repoman: ebuild.absdosym check: fix AttributeError for re.ASCII under python2.7
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
repoman/lib/repoman/modules/linechecks/do/dosym.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/repoman/lib/repoman/modules/linechecks/do/dosym.py
b/repoman/lib/repoman/modules/linechecks/do/dosym.py
index d1aed74d7..37c0ac535 100644
--- a/repoman/lib/repoman/modules/linechecks/do/dosym.py
+++ b/repoman/lib/repoman/modules/linechecks/do/dosym.py
@@ -10,7 +10,7 @@ class EbuildNonRelativeDosym(LineCheck):
variables = ('D', 'ED', 'ROOT', 'EROOT', 'BROOT')
regex = re.compile(
r'^\s*dosym\s+(["\']?((\$(%s)\W|\${(%s)(%%/)?})|/(bin|etc|lib|opt|sbin|srv|usr|var))\S*)'
%
- ('|'.join(variables), '|'.join(variables)), re.ASCII)
+ ('|'.join(variables), '|'.join(variables)), getattr(re,
'ASCII', 0))
def check(self, num, line):
match = self.regex.match(line)