Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
mantidproject
mantid
Commits
04f58ae8
Commit
04f58ae8
authored
6 years ago
by
Keith Butler
Browse files
Options
Downloads
Patches
Plain Diff
Re #23248 fixing flake 8 warning
parent
87bc5b37
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/PythonInterface/plugins/algorithms/OrderWorkspaceHistory.py
+1
-2
1 addition, 2 deletions
...thonInterface/plugins/algorithms/OrderWorkspaceHistory.py
with
1 addition
and
2 deletions
Framework/PythonInterface/plugins/algorithms/OrderWorkspaceHistory.py
+
1
−
2
View file @
04f58ae8
...
@@ -91,8 +91,7 @@ class OrderWorkspaceHistory(mantid.api.PythonAlgorithm):
...
@@ -91,8 +91,7 @@ class OrderWorkspaceHistory(mantid.api.PythonAlgorithm):
line
.
append
(
t
)
line
.
append
(
t
)
# l[-1][1][1:] is the comment string, with the preceeding hash stripped off
# l[-1][1][1:] is the comment string, with the preceeding hash stripped off
all_commands
=
[(
''
.
join
(
t
[
1
]
for
t
in
l
[:
-
1
]),
l
[
-
1
][
1
][
1
:])
all_commands
=
[(
''
.
join
(
t
[
1
]
for
t
in
l
[:
-
1
]),
l
[
-
1
][
1
][
1
:])
for
l
in
all_lines
]
for
l
in
all_lines
]
# Remove duplicate commands by casting commands as a set
# Remove duplicate commands by casting commands as a set
unique_commands
=
set
()
unique_commands
=
set
()
for
command
in
all_commands
:
for
command
in
all_commands
:
...
...
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