Skip to content

Commit cc8db34

Browse files
committed
Transform/DDG: Print to output file even when debug is enabled
1 parent 31c6f06 commit cc8db34

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

index2ddg.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,11 @@ def process_identifier(out, redirects, root, link, item_ident, item_type,
422422
name of the enum. If we find duplicates, signal an error.
423423
'''
424424

425+
if debug.enabled:
426+
print("--------------")
427+
print(item_ident)
428+
print(abstract)
429+
425430
# title
426431
line = item_ident + '\t'
427432
# type
@@ -499,10 +504,7 @@ def main():
499504

500505
redirects = []
501506

502-
if debug.enabled:
503-
out = sys.stdout
504-
else:
505-
out = open(output_file, 'w')
507+
out = open(output_file, 'w')
506508

507509
#i=1
508510
for page in proc_ins:

0 commit comments

Comments
 (0)