Fix the output by --progress.

Previously, this just printed the last file name again and again.
Now we are printing the file name we are currently looking at.

This can be observed e.g. by `wmlscope --progress`.
This commit is contained in:
Paŭlo Ebermann 2017-09-28 22:37:25 +02:00 committed by Jyrki Vesterinen
parent 70bd919631
commit 02907ebe75

View file

@ -685,7 +685,7 @@ class CrossRef:
print("*** Beginning reference-gathering pass...")
for (ns, fn) in all_in:
if progress:
print(filename)
print(fn)
if iswml(fn):
with codecs.open(fn, "r", "utf8") as rfp:
attack_name = None