diff options
author | alalazo <massimiliano.culpo@googlemail.com> | 2016-07-06 17:03:32 +0200 |
---|---|---|
committer | alalazo <massimiliano.culpo@googlemail.com> | 2016-07-06 17:03:32 +0200 |
commit | 9b926a480f84c62cf4ed23c26b950dd7c89fb1ad (patch) | |
tree | 2f0f033142f84abdda7500336474187be32973f4 /lib | |
parent | 780a57367dd41f77d45f3e229c0a018c7695821f (diff) | |
download | spack-9b926a480f84c62cf4ed23c26b950dd7c89fb1ad.tar.gz spack-9b926a480f84c62cf4ed23c26b950dd7c89fb1ad.tar.bz2 spack-9b926a480f84c62cf4ed23c26b950dd7c89fb1ad.tar.xz spack-9b926a480f84c62cf4ed23c26b950dd7c89fb1ad.zip |
qa : flake8 issues
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/test/versions.py | 2 | ||||
-rw-r--r-- | lib/spack/spack/version.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/test/versions.py b/lib/spack/spack/test/versions.py index c051895ca3..a3a328fb14 100644 --- a/lib/spack/spack/test/versions.py +++ b/lib/spack/spack/test/versions.py @@ -424,4 +424,4 @@ class VersionsTest(unittest.TestCase): self.assertEqual(repr(b), 'Version(\'1_2-3\')') self.assertEqual(str(b), '1_2-3') # Raise TypeError on tuples - self.assertRaises(TypeError, b.__getitem__, 1, 2)
\ No newline at end of file + self.assertRaises(TypeError, b.__getitem__, 1, 2) diff --git a/lib/spack/spack/version.py b/lib/spack/spack/version.py index 7e5878383d..6839643941 100644 --- a/lib/spack/spack/version.py +++ b/lib/spack/spack/version.py @@ -202,9 +202,9 @@ class Version(object): # Currently len(self.separators) == len(self.version) - 1 extendend_separators = self.separators + ('',) string_arg = [] - for token, separator in zip(self.version, extendend_separators)[idx]: + for token, sep in zip(self.version, extendend_separators)[idx]: string_arg.append(str(token)) - string_arg.append(str(separator)) + string_arg.append(str(sep)) string_arg.pop() # We don't need the last separator string_arg = ''.join(string_arg) return cls(string_arg) |