mercurial/minirst.py
changeset 14168 135e244776f0
parent 13011 4936a04b6792
child 14433 7658221da551
equal deleted inserted replaced
14167:0e4753807c93 14168:135e244776f0
   465         print "*** after %s:" % func.__name__
   465         print "*** after %s:" % func.__name__
   466         pprint(blocks)
   466         pprint(blocks)
   467         print
   467         print
   468         return blocks
   468         return blocks
   469 
   469 
   470     text = open(sys.argv[1]).read()
   470     text = util.readfile(sys.argv[1])
   471     blocks = debug(findblocks, text)
   471     blocks = debug(findblocks, text)
   472     blocks = debug(findliteralblocks, blocks)
   472     blocks = debug(findliteralblocks, blocks)
   473     blocks, pruned = debug(prunecontainers, blocks, sys.argv[2:])
   473     blocks, pruned = debug(prunecontainers, blocks, sys.argv[2:])
   474     blocks = debug(inlineliterals, blocks)
   474     blocks = debug(inlineliterals, blocks)
   475     blocks = debug(splitparagraphs, blocks)
   475     blocks = debug(splitparagraphs, blocks)