diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-01-29 00:02:34 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-01-29 00:02:34 -0800 |
commit | e06065bffc3f1764500fddf870f4cdccef19e2b8 (patch) | |
tree | d6a6613a747c3ffd15fc68ca4e902b3028c79ed5 | |
parent | 149482208c430cbd9d730c35256430ea6cf58c3d (diff) | |
download | portage-e06065bffc3f1764500fddf870f4cdccef19e2b8.tar.gz portage-e06065bffc3f1764500fddf870f4cdccef19e2b8.tar.bz2 portage-e06065bffc3f1764500fddf870f4cdccef19e2b8.zip |
Fix selinux import error handling.
-rw-r--r-- | pym/portage/__init__.py | 1 |
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']) |