From d7ad6e26a4e2e2f7e8e8823b67c021ef9d8b724f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 18 May 2013 11:16:14 -0700 Subject: [PATCH] JobStatusDisplay: fix tigetstr for pypy-2.0_beta2 This will fix bug #470258. --- pym/_emerge/JobStatusDisplay.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2