From a088cdaa0458e76abd34eed9b535120823c376a4 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 23 Jan 2017 21:07:45 -0800 Subject: [PATCH] lint: Clean up E714 PEP-8 rule. --- tools/lint-all | 2 +- zerver/views/home.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lint-all b/tools/lint-all index 1463760989..009674638a 100755 --- a/tools/lint-all +++ b/tools/lint-all @@ -88,7 +88,7 @@ def check_pep8(files): # actually be cleaned up. # 'E123', 'E126', 'E226', 'E241', 'E261', 'E302', - 'E401', 'E501', 'E702', 'E711', 'E712', 'E713', 'E714', + 'E401', 'E501', 'E702', 'E711', 'E712', 'E713', # # Each of these rules are ignored for the explained reason. diff --git a/zerver/views/home.py b/zerver/views/home.py index 6bf710574c..235a8a88f1 100644 --- a/zerver/views/home.py +++ b/zerver/views/home.py @@ -134,7 +134,7 @@ def home_real(request): # Reset our don't-spam-users-with-email counter since the # user has since logged in - if not user_profile.last_reminder is None: + if user_profile.last_reminder is not None: user_profile.last_reminder = None user_profile.save(update_fields=["last_reminder"])