From e401b4e424bf95c5fb62806909c6951160cadc8b Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 1 Feb 2017 08:24:31 -0800 Subject: [PATCH] PEP 8 fix. --- contrib/inventory/ec2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/inventory/ec2.py b/contrib/inventory/ec2.py index d9b85c03d4..2dc760af98 100755 --- a/contrib/inventory/ec2.py +++ b/contrib/inventory/ec2.py @@ -251,7 +251,7 @@ class Ec2Inventory(object): self.regions = configRegions.split(",") if 'auto' in self.regions: env_region = os.environ.get('AWS_REGION') - if env_region == None: + if env_region is None: env_region = os.environ.get('AWS_DEFAULT_REGION') self.regions = [ env_region ]