From daa06ab65eaa85407aa3eed1f20c7afe00a6b42d Mon Sep 17 00:00:00 2001 From: Andrew Pilloud Date: Wed, 15 Jul 2015 17:48:54 -0700 Subject: [PATCH] Drop os.path.exists --- master/buildbot/buildslave/ec2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master/buildbot/buildslave/ec2.py b/master/buildbot/buildslave/ec2.py index c835ee92d..2fdba12fd 100644 --- a/master/buildbot/buildslave/ec2.py +++ b/master/buildbot/buildslave/ec2.py @@ -109,7 +109,7 @@ class EC2LatentBuildSlave(AbstractLatentBuildSlave): aws_id_file_path = os.path.join(home, '.ec2', 'aws_id') if not os.path.exists(aws_id_file_path): aws_id_file_path = None - if aws_id_file_path and os.path.exists(aws_id_file_path): + if aws_id_file_path: log.msg('WARNING: EC2LatentBuildSlave is using deprecated ' 'aws_id file') with open(aws_id_file_path, 'r') as aws_file: