summaryrefslogtreecommitdiffstats
path: root/pym/repoman/checks.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-01-18 15:05:42 -0800
committerZac Medico <zmedico@gentoo.org>2013-01-18 15:05:42 -0800
commite9a04922c144b267534e3335d2ff3d7bb8994b80 (patch)
tree0c43dc33336066103b605bc7441ac94bc85575b9 /pym/repoman/checks.py
parent71235479ab208318dff391420f9695f5cfaa9594 (diff)
downloadportage-e9a04922c144b267534e3335d2ff3d7bb8994b80.tar.gz
portage-e9a04922c144b267534e3335d2ff3d7bb8994b80.tar.bz2
portage-e9a04922c144b267534e3335d2ff3d7bb8994b80.zip
Add workaround for Python 2.6.4 issue 4978
Avoid "TypeError: keywords must be strings" issue triggered by unicode_literals: http://bugs.python.org/issue4978
Diffstat (limited to 'pym/repoman/checks.py')
-rw-r--r--pym/repoman/checks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py
index 83ce2ed6e..9dd3b959d 100644
--- a/pym/repoman/checks.py
+++ b/pym/repoman/checks.py
@@ -819,7 +819,8 @@ class PortageInternalVariableAssignment(LineCheck):
_base_check_classes = (InheritEclass, LineCheck, PhaseCheck)
_constant_checks = tuple(chain((v() for k, v in globals().items()
if isinstance(v, type) and issubclass(v, LineCheck) and v not in _base_check_classes),
- (InheritEclass(k, **kwargs) for k, kwargs in _eclass_info.items())))
+ (InheritEclass(k, **portage._native_kwargs(kwargs))
+ for k, kwargs in _eclass_info.items())))
_here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$')
_ignore_comment_re = re.compile(r'^\s*#')