This warning is emitted from the unicode_escape codec, triggered by a sed expression in the ebuilds containing "\[": repoman/modules/scan/ebuild/checks.py:930: DeprecationWarning: invalid escape sequence '\[' I think we can replace the unicode_escape usage with a regular expression that matches an odd number of trailing backslashes.
This seems to work: def has_line_continuation(line): m = re.search(r'(\\)*$', line) return False if m is None else operator.sub(*m.span()) % 2 == 1
Patch posted for review: https://archives.gentoo.org/gentoo-portage-dev/message/76e505fb48f3b764c6335e145cc8af66 https://github.com/gentoo/portage/pull/123
This is in the master branch: https://gitweb.gentoo.org/proj/portage.git/commit/?id=3e82d2e09f124f3b77d1b913c945b93341ee4053
Released in repoman-2.3.2