Index: pym/portage/__init__.py =================================================================== --- pym/portage/__init__.py (revision 15158) +++ pym/portage/__init__.py (revision 15159) @@ -293,6 +293,9 @@ _selinux_merge = None try: import portage._selinux + # Make sure the _selinux attribute is correctly reinitialized after + # reload(portage) is called. See bug #298310. + _selinux = sys.modules['portage._selinux'] selinux = _unicode_module_wrapper(_selinux, encoding=_encodings['fs']) _selinux_merge = _unicode_module_wrapper(_selinux,