commit: 9357614944df633df54871bc732d37abfe3a035f Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Wed May 4 06:23:05 2016 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> CommitDate: Wed May 4 06:23:05 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=93576149
repoman/modules/.../pkgmetadata.py: Add missing basestring compat code pym/repoman/modules/scan/metadata/pkgmetadata.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pym/repoman/modules/scan/metadata/pkgmetadata.py b/pym/repoman/modules/scan/metadata/pkgmetadata.py index 8b31e3f..d8344c2 100644 --- a/pym/repoman/modules/scan/metadata/pkgmetadata.py +++ b/pym/repoman/modules/scan/metadata/pkgmetadata.py @@ -32,6 +32,10 @@ from portage.dep import Atom from .use_flags import USEFlagChecks +if sys.hexversion >= 0x3000000: + # pylint: disable=W0622 + basestring = str + metadata_xml_encoding = 'UTF-8' metadata_xml_declaration = '<?xml version="1.0" encoding="%s"?>' \ % (metadata_xml_encoding,)