Skip to content

Commit

Permalink
Merge pull request #2602 from lunkwill42/cleanup/drop-py2-nonzero
Browse files Browse the repository at this point in the history
Drop obsolete Python 2 compatibility statement
  • Loading branch information
lunkwill42 authored Mar 28, 2023
2 parents 7d47aa7 + a824e17 commit 9e21fac
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 9e21fac

Please sign in to comment.