From e06065bffc3f1764500fddf870f4cdccef19e2b8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 29 Jan 2011 00:02:34 -0800 Subject: [PATCH] Fix selinux import error handling. --- pym/portage/__init__.py | 1 + 1 file changed, 1 insertion(+) 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']) -- 2.26.2