Skip to content

Commit

Permalink
Merge pull request #71 from gbarboza/gbarboza-patch-1
Browse files Browse the repository at this point in the history
Remove use of 'has_key'
  • Loading branch information
alex-luminal committed Feb 24, 2016
2 parents f045c2c + 364d030 commit 36405d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credstash.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def main():
session = boto3.Session(profile_name=args.profile)
session.resource('dynamodb', region_name=region)
except botocore.exceptions.NoRegionError:
if not os.environ.has_key("AWS_DEFAULT_REGION"):
if not 'AWS_DEFAULT_REGION' in os.environ:
region = DEFAULT_REGION

if "action" in vars(args):
Expand Down

0 comments on commit 36405d4

Please sign in to comment.