Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 093c97a

Browse files
committed
ignore_from_idx(): Fixed bug in regular expression.
1 parent 684f78f commit 093c97a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/tools/listmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def main():
6666
if data[:1] == "\\":
6767
ignore_from_idx(data, ignore_dict)
6868
else:
69-
ignore_from_filelist(data, ignore_dict)
69+
ignore_from_modulelist(data, ignore_dict)
7070
if args or (annotate and categorize):
7171
usage()
7272
sys.exit(2)
@@ -135,13 +135,13 @@ def main():
135135
print string.join(modules, "\n")
136136

137137

138-
def ignore_from_filelist(data, ignore_dict):
138+
def ignore_from_modulelist(data, ignore_dict):
139139
for name in string.split(data):
140140
ignore_dict[name] = name
141141

142142
def ignore_from_idx(data, ignore_dict):
143143
data = string.replace(data, r"\hackscore {}", "_")
144-
rx = re.compile(r"\indexentry {([^@]*)@")
144+
rx = re.compile(r"\\indexentry\s*{([^@]*)@")
145145
for line in string.split(data, "\n"):
146146
m = rx.match(line)
147147
if m:

0 commit comments

Comments
 (0)