summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-01-29 00:02:34 -0800
committerZac Medico <zmedico@gentoo.org>2011-01-29 00:02:34 -0800
commite06065bffc3f1764500fddf870f4cdccef19e2b8 (patch)
treed6a6613a747c3ffd15fc68ca4e902b3028c79ed5
parent149482208c430cbd9d730c35256430ea6cf58c3d (diff)
downloadportage-e06065bffc3f1764500fddf870f4cdccef19e2b8.tar.gz
portage-e06065bffc3f1764500fddf870f4cdccef19e2b8.tar.bz2
portage-e06065bffc3f1764500fddf870f4cdccef19e2b8.zip
Fix selinux import error handling.
-rw-r--r--pym/portage/__init__.py1
1 files changed, 1 insertions, 0 deletions
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'])