Remove useless debugging code

This commit is contained in:
Konrad Borowski 2013-07-27 17:08:06 +02:00
parent aa8b3cb6d6
commit 0479f0ad63

View File

@ -952,18 +952,4 @@ if __name__ == "__main__":
if e.errno != errno.EEXIST: if e.errno != errno.EEXIST:
raise raise
if True:
parse_and_output_man_pages(file_paths, output_directory, show_progress) parse_and_output_man_pages(file_paths, output_directory, show_progress)
else:
# Profiling code
import cProfile, pstats
cProfile.run('parse_and_output_man_pages(file_paths, output_directory, show_progress)', 'fooprof')
p = pstats.Stats('fooprof')
p.sort_stats('cumulative').print_stats(100)
# Here we can write out all the parser infos
if False:
for name in PARSER_INFO:
print('Parser ' + name + ':')
print('\t' + ', '.join(PARSER_INFO[name]))
print('')