Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 296641
Collapse All | Expand All

(-)pym/portage/__init__.py (-1 / +5 lines)
Lines 6080-6086 Link Here
6080
	return eapi in _deprecated_eapis
6080
	return eapi in _deprecated_eapis
6081
6081
6082
def eapi_is_supported(eapi):
6082
def eapi_is_supported(eapi):
6083
	eapi = str(eapi).strip()
6083
	if not isinstance(eapi, basestring):
6084
		# Only call str() when necessary since with python2 it
6085
		# can trigger UnicodeEncodeError if EAPI is corrupt.
6086
		eapi = str(eapi)
6087
	eapi = eapi.strip()
6084
6088
6085
	if _eapi_is_deprecated(eapi):
6089
	if _eapi_is_deprecated(eapi):
6086
		return True
6090
		return True

Return to bug 296641