Skip to content

Commit

Permalink
Update 'if not' to '!='
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders Perrone committed Jan 27, 2021
1 parent 2f1b10e commit 7c6b977
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion abcd2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def make_nda_token(args):
# If NDA credentials are invalid, tell user so without printing password.
# Manually catch error instead of using try-except to avoid trying to
# catch another file's exception.
if token_call_exit_code is not 0:
if token_call_exit_code != 0:
print("Failed to create NDA token using the username and decrypted "
"password from {}.".format(os.path.abspath(args.config)))
sys.exit(1)
Expand Down
2 changes: 1 addition & 1 deletion src/nda_aws_token_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# Try to get NDA credentials from command line args passed in; if there are no
# args, then prompt user for credentials
if len(sys.argv) is 3: # [0] is self, [1] is username, [2] is password, so 3
if len(sys.argv) == 3: # [0] is self, [1] is username, [2] is password, so 3
username = sys.argv[1]
password = sys.argv[2]
else:
Expand Down
2 changes: 1 addition & 1 deletion src/sefm_eval_and_json_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def sefm_select(layout, subject, sessions, base_temp_dir, fsl_dir, mre_dir,
neg = 'AP'

# Add trailing slash to fsl_dir variable if it's not present
if fsl_dir[-1] is not "/":
if fsl_dir[-1] != "/":
fsl_dir += "/"

# Make a temporary working directory
Expand Down

0 comments on commit 7c6b977

Please sign in to comment.