From: Zac Medico Date: Sat, 29 Jan 2011 08:02:34 +0000 (-0800) Subject: Fix selinux import error handling. X-Git-Tag: v2.1.9.36~55 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=68a5404751a5a2a75a9d0a4d352d63f4c11d305e;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'])