Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
9b926a48
Commit
9b926a48
authored
8 years ago
by
Massimiliano Culpo
Browse files
Options
Downloads
Patches
Plain Diff
qa : flake8 issues
parent
780a5736
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/spack
+1
-1
1 addition, 1 deletion
bin/spack
lib/spack/spack/test/versions.py
+1
-1
1 addition, 1 deletion
lib/spack/spack/test/versions.py
lib/spack/spack/version.py
+2
-2
2 additions, 2 deletions
lib/spack/spack/version.py
with
4 additions
and
4 deletions
bin/spack
+
1
−
1
View file @
9b926a48
...
...
@@ -77,7 +77,7 @@ import llnl.util.tty as tty
from
llnl.util.tty.color
import
*
import
spack
from
spack.error
import
SpackError
from
external
import
argparse
import
argparse
# Command parsing
parser
=
argparse
.
ArgumentParser
(
...
...
This diff is collapsed.
Click to expand it.
lib/spack/spack/test/versions.py
+
1
−
1
View file @
9b926a48
...
...
@@ -424,4 +424,4 @@ def test_get_item(self):
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
)
This diff is collapsed.
Click to expand it.
lib/spack/spack/version.py
+
2
−
2
View file @
9b926a48
...
...
@@ -202,9 +202,9 @@ def __getitem__(self, idx):
# Currently len(self.separators) == len(self.version) - 1
extendend_separators
=
self
.
separators
+
(
''
,)
string_arg
=
[]
for
token
,
sep
arator
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
(
sep
arator
))
string_arg
.
append
(
str
(
sep
))
string_arg
.
pop
()
# We don't need the last separator
string_arg
=
''
.
join
(
string_arg
)
return
cls
(
string_arg
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment