summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 6cff57d8f..f20284e30 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -3680,11 +3680,7 @@ class config(object):
writemsg("!!! SELinux module not found. Please verify that it was installed.\n",
noiselevel=-1)
self._selinux_enabled = 0
- if self._selinux_enabled == 0:
- try:
- del sys.modules["selinux"]
- except KeyError:
- pass
+
return self._selinux_enabled
if sys.hexversion >= 0x3000000: