From dd94660ef0d99fc25759f2a7e8da33af5fdf7484 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Fri, 1 Feb 2013 00:16:31 +0100 Subject: [PATCH] Use "is None" instead of "== None" --- radicale/rights/from_file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/rights/from_file.py b/radicale/rights/from_file.py index 054003d..ffe9e0c 100644 --- a/radicale/rights/from_file.py +++ b/radicale/rights/from_file.py @@ -68,7 +68,7 @@ else: def read_authorized(user, collection): """Check if the user is allowed to read the collection.""" - if user == None: + if user is None: return False elif owner_only.read_authorized(user, collection): return True @@ -80,7 +80,7 @@ def read_authorized(user, collection): def write_authorized(user, collection): """Check if the user is allowed to write the collection.""" - if user == None: + if user is None: return False elif owner_only.read_authorized(user, collection): return True