diff options
author | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2019-09-15 23:21:52 +0000 |
---|---|---|
committer | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2019-09-15 23:21:52 +0000 |
commit | 622011499862632724c9911967b836348f5af538 (patch) | |
tree | ecd4a7750a69eed5da241115988beca1b6a82b8d /lnt/server | |
parent | 1497cdda651d67a4a5949eac9fad20db711ae6f3 (diff) |
[LNT] Python 3 support: Update `<>` and `None` comparisons
Summary:
Replaces comparisons using `!=`, `<>`, and `==` against `None` with the
corresponding version of `is not None` and `is None`.
Replaces `<>` with `!=`.
As requested by reviewers, add spaces around operators on lines touched.
Reviewers: cmatthews, thopre, kristof.beyls
Reviewed By: thopre
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D67535
git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@371945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lnt/server')
-rw-r--r-- | lnt/server/ui/filters.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lnt/server/ui/filters.py b/lnt/server/ui/filters.py index a164111..4ac0739 100644 --- a/lnt/server/ui/filters.py +++ b/lnt/server/ui/filters.py @@ -63,7 +63,7 @@ def filter_filesize(value): def filter_print_value(value, field_unit, field_unit_abbrev, default = '-'): - if value == None: + if value is None: return default if field_unit == 'bytes' and field_unit_abbrev == 'B': |