From: Zac Medico Date: Sat, 29 Jan 2011 08:02:34 +0000 (-0800) Subject: Fix selinux import error handling. X-Git-Tag: v2.2.0_alpha20~82 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e06065bffc3f1764500fddf870f4cdccef19e2b8;p=portage.git Fix selinux import error handling. --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 374d077f1..9732a74b1 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -309,6 +309,7 @@ shutil = _unicode_module_wrapper(_shutil, encoding=_encodings['fs']) # Imports below this point rely on the above unicode wrapper definitions. try: + __import__('selinux') import portage._selinux selinux = _unicode_module_wrapper(_selinux, encoding=_encodings['fs'])