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