Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apachedex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
apachedex
Commits
4e9ac582
Commit
4e9ac582
authored
Apr 07, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bad variable reuse.
parent
a84f0f42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
apachedex/__init__.py
apachedex/__init__.py
+3
-3
No files found.
apachedex/__init__.py
View file @
4e9ac582
...
...
@@ -490,13 +490,13 @@ class AggregateSiteUrl(argparse.Action):
'--skip-base'
:
None
,
}
def
__call__
(
self
,
parser
,
namespace
,
values
,
option_string
=
None
):
action
=
self
.
__argument_to_aggregator
[
option_string
]
action
=
base_action
=
self
.
__argument_to_aggregator
[
option_string
]
dest
=
getattr
(
namespace
,
self
.
dest
)
for
value
in
values
:
match
=
re
.
compile
(
value
).
match
if
action
is
not
None
:
if
base_
action
is
not
None
:
match_suffix
=
re
.
compile
(
value
+
'(?P<suffix>.*)'
).
match
action
=
partial
(
action
,
action
=
partial
(
base_
action
,
suffix
=
lambda
x
:
match_suffix
(
x
).
group
(
'suffix'
))
dest
.
append
((
value
,
match
,
action
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment