Fix E711 comparison to None should be if cond is None:

This commit is contained in:
Jesse Mullan
2014-11-01 16:22:05 -07:00
parent 5ede29b401
commit 015d269667
12 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -939,7 +939,7 @@ the same interface as FileCache."""
if response.has_key('location'):
location = response['location']
(scheme, authority, path, query, fragment) = parse_uri(location)
if authority == None:
if authority is None:
response['location'] = urlparse.urljoin(absolute_uri, location)
if response.status == 301 and method in ["GET", "HEAD"]:
response['-x-permanent-redirect-url'] = response['location']