mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08:00
Remove useless debugging code
This commit is contained in:
parent
aa8b3cb6d6
commit
0479f0ad63
|
@ -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('')
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user