From: Zac Medico Date: Sat, 18 May 2013 18:16:14 +0000 (-0700) Subject: JobStatusDisplay: fix tigetstr for pypy-2.0_beta2 X-Git-Tag: v2.2.0_alpha176~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d7ad6e26a4e2e2f7e8e8823b67c021ef9d8b724f;p=portage.git JobStatusDisplay: fix tigetstr for pypy-2.0_beta2 This will fix bug #470258. --- diff --git a/pym/_emerge/JobStatusDisplay.py b/pym/_emerge/JobStatusDisplay.py index f48b2135f..9f6f09be0 100644 --- a/pym/_emerge/JobStatusDisplay.py +++ b/pym/_emerge/JobStatusDisplay.py @@ -122,7 +122,8 @@ class JobStatusDisplay(object): term_codes = {} for k, capname in self._termcap_name_map.items(): - code = tigetstr(capname) + # Use _native_string for PyPy compat (bug #470258). + code = tigetstr(portage._native_string(capname)) if code is None: code = self._default_term_codes[capname] term_codes[k] = code