From 33ca7f68172274a327861ec46b9c62af53f8d14a Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Tue, 8 Apr 2014 08:30:47 +0100 Subject: [PATCH] Better variable names. --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index dea0f75a2c..2d8eecf0ee 100755 --- a/setup.py +++ b/setup.py @@ -174,7 +174,7 @@ class CloudSdist(sdist): ) with open(deploy_path, 'w') as fp_: fp_.write(req.read()) - except (OSError, IOError), err: + except (OSError, IOError) as err: log.error( 'Failed to write the updated script: {0}'.format(err) ) @@ -394,10 +394,10 @@ class InstallLib(install_lib): out = self.get_outputs() chmod = [] - for i, word in enumerate(inp): + for idx, inputfile in enumerate(inp): for executeable in executables: - if word.endswith(executeable): - chmod.append(i) + if inputfile.endswith(executeable): + chmod.append(idx) for idx in chmod: filename = out[idx] os.chmod(filename, 0755)