From 0b8fcc551beec16de3944c85948891bef94e690c Mon Sep 17 00:00:00 2001 From: stv Date: Mon, 16 Feb 2015 21:55:04 -0800 Subject: [PATCH] Fix PEP8: E713 test for membership should be 'not in' --- scripts/release.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/release.py b/scripts/release.py index 888c905c8e..8405e12efb 100755 --- a/scripts/release.py +++ b/scripts/release.py @@ -98,7 +98,7 @@ def ensure_pr_fetch(): """ modified = False remotes = git.remote().splitlines() - if not "edx" in remotes: + if 'edx' not in remotes: git.remote("add", "edx", "https://github.com/edx/edx-platform.git") modified = True # it would be nice to use the git-python API to do this, but it doesn't seem @@ -251,9 +251,9 @@ def ensure_github_creds(attempts=3): else: config = {} # update config - if not "credentials" in config: + if 'credentials' not in config: config["credentials"] = {} - if not "api.github.com" in config["credentials"]: + if 'api.github.com' not in config['credentials']: config["credentials"]["api.github.com"] = {} config["credentials"]["api.github.com"]["username"] = username config["credentials"]["api.github.com"]["token"] = token