diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2024-03-30 22:16:37 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-03-30 22:16:37 +0100 |
commit | 6669d427f87ec62a86a680a542d2f87f2d65cc80 (patch) | |
tree | 80e08e1830eb6283fffa2d3db600ad00090d1970 /interfaces/web/web.py | |
parent | bc53c496220b283773f65762d4283c8f1e480131 (diff) | |
download | bugseverywhere-6669d427f87ec62a86a680a542d2f87f2d65cc80.tar.gz |
Used PyCharms inspectors.
Diffstat (limited to 'interfaces/web/web.py')
-rw-r--r-- | interfaces/web/web.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/interfaces/web/web.py b/interfaces/web/web.py index ed87c78..ba68908 100644 --- a/interfaces/web/web.py +++ b/interfaces/web/web.py @@ -75,13 +75,13 @@ class WebInterface: if target != '': target = None if target == 'None' else target - if target == None: + if target is None: # Return all bugs that don't block any targets. return [bug for bug in bugs if not bug_target(self.bd, bug)] else: # Return all bugs that block the supplied target. targetbug = bug_from_target_summary(self.bd, target) - if targetbug == None: + if targetbug is None: return [] bugs = [bug for bug in get_blocked_by(self.bd, targetbug) if bug.active] @@ -188,7 +188,7 @@ class WebInterface: """The view that handles editing bug details.""" bug = self.bd.bug_from_uuid(id) - if summary != None: + if summary is not None: bug.summary = summary else: bug.status = status if status != 'None' else None |