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

@ -78,7 +78,7 @@ class autoProcessGames(object):
logger.error("No library specified to move files to. Please edit your configuration.", section)
return [1, "%s: Failed to post-process - No library defined in %s" % (section, section)]
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))]
elif result['success']: