Univention Bugzilla – Bug 42806
Replace __package__ = '' PEP 366 workaround
Last modified: 2020-10-30 01:41:43 CET
All listener modules define __package__ = '' to be able to suppress some python warnings.
This should be done in the correct pythonic way:
from __future__ import absolute_import
sed -i 's/__package__ = ''.*/from __future__ import absolute_import/g' -- $(git grep -l "__package__ = ''.*")
Style checkers like pep8 are otherwise complaining:
pep8 --first --select E402 -- $(git grep -l "__package__ = ''.*")
base/univention-heimdal/keytab-member.py:33:1: E402 module level import not at top of file
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018.
Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.
If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
Fixed along with the Python 3 migration in UCS 5.0.