From 8a51d27f655f59c29d7f41f9dabd4082d0ee566d Mon Sep 17 00:00:00 2001 From: Pierros Papadeas Date: Fri, 12 Jul 2019 09:26:46 +0300 Subject: [PATCH] Fix C0325 pylint error Signed-off-by: Pierros Papadeas --- .pylintrc | 1 - db/base/helpers.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.pylintrc b/.pylintrc index 0ff4da7..14b0633 100644 --- a/.pylintrc +++ b/.pylintrc @@ -8,7 +8,6 @@ disable= C0122, C0411, C0412, - C0325, E1101, E0213, R0101, diff --git a/db/base/helpers.py b/db/base/helpers.py index 90031c3..6f2040b 100644 --- a/db/base/helpers.py +++ b/db/base/helpers.py @@ -9,9 +9,9 @@ LOWER = 'abcdefghijklmnopqrstuvwx' def gridsquare(lat, lng): - if not (-180 <= lng < 180): + if not -180 <= lng < 180: return False - if not (-90 <= lat < 90): + if not -90 <= lat < 90: return False adj_lat = lat + 90.0