From 68a5404751a5a2a75a9d0a4d352d63f4c11d305e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 29 Jan 2011 00:02:34 -0800 Subject: Fix selinux import error handling. --- pym/portage/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'pym') 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']) -- cgit v1.2.3-1-g7c22