From e9a04922c144b267534e3335d2ff3d7bb8994b80 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 18 Jan 2013 15:05:42 -0800 Subject: 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 --- pym/repoman/checks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pym/repoman') 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*#') -- cgit v1.2.3-1-g7c22