X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-keys/blobdiff_plain/b65e1f934c6951c5943634f38ae4098573b94b0f..e787e19c99a9df4f49ac77237c58d43df3829e9f:/extract-profile.in diff --git a/extract-profile.in b/extract-profile.in index c3a224b..dc816f3 100755 --- 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 - prop = string[dol + 1:left].replace('-', '_') + prop = string[dol + 1:left] ## 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. + prop = prop.replace('-', '_') path.append(prop) ## Report a cycle if we found one.