Skip to content

Commit

Permalink
Drop obsolete Python 2 compatibility statement
Browse files Browse the repository at this point in the history
This was introduced by 16536ab .
It hasn't been needed since NAV dropped support for Python 2.
  • Loading branch information
lunkwill42 committed Mar 24, 2023
1 parent 5e9609c commit a824e17
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/nav/eventengine/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ def __bool__(self):
"""
return True

__nonzero__ = __bool__ # For PY2 compatibility

def make_alert(self):
"""Generates an alert object based on the current attributes"""
attrs = {}
Expand Down

0 comments on commit a824e17

Please sign in to comment.