PEP8: Test for membership should be 'not in'

This commit is contained in:
labrys 2016-05-31 03:25:16 -04:00 committed by Labrys
parent 38ed3350ac
commit 061a167b56
5 changed files with 11 additions and 11 deletions

View file

@ -71,7 +71,7 @@ class autoProcessComics(object):
if "Post Processing SUCCESSFUL" in line:
success = True
if not r.status_code in [requests.codes.ok, requests.codes.created, requests.codes.accepted]:
if r.status_code not in [requests.codes.ok, requests.codes.created, requests.codes.accepted]:
logger.error("Server returned status %s" % (str(r.status_code)), section)
return [1, "%s: Failed to post-process - Server returned status %s" % (section, str(r.status_code))]