~mdw
/
distorted-keys
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
keyfunc.sh.in (prepare): Indicate that an ACL check isn't necessary.
[distorted-keys]
/
extract-profile.in
diff --git
a/extract-profile.in
b/extract-profile.in
index
c3a224b
..
dc816f3
100755
(executable)
--- a/
extract-profile.in
+++ b/
extract-profile.in
@@
-279,7
+279,7
@@
class Section (object, UD.DictMixin):
left = dol + 1
while left < n and (string[left].isalnum() or string[left] in '-_'):
left += 1
left = dol + 1
while left < n and (string[left].isalnum() or string[left] in '-_'):
left += 1
- prop = string[dol + 1:left]
.replace('-', '_')
+ prop = string[dol + 1:left]
## If we came up empty, report an error.
if prop == '':
## If we came up empty, report an error.
if prop == '':
@@
-287,6
+287,7
@@
class Section (object, UD.DictMixin):
"invalid placeholder (empty name) in `%s'" % string
## Extend the path: we're going to do a recursive expansion.
"invalid placeholder (empty name) in `%s'" % string
## Extend the path: we're going to do a recursive expansion.
+ prop = prop.replace('-', '_')
path.append(prop)
## Report a cycle if we found one.
path.append(prop)
## Report a cycle if we found one.