# HG changeset patch # User Volker Birk # Date 1496957506 -7200 # Node ID fa6d87fbf242870ad5be12a93640f1d280d4d2e0 # Parent 7026ccc7a60e388fdf38ea862f7b2e706de2c75f ... diff -r 7026ccc7a60e -r fa6d87fbf242 yml2c --- a/yml2c Thu Jun 08 23:30:58 2017 +0200 +++ b/yml2c Thu Jun 08 23:31:46 2017 +0200 @@ -64,12 +64,6 @@ backend.includePath.extend(dirs) files = fileinput.input(args, mode="rU", openhook=fileinput.hook_encoded(options.encoding)) - # fileinput suffer from two nasty bugs : - # - ignoring open hook with stdin - # - iterator requires ctrl-D to be pressed twice on some platform - #if args in [[],['-']] : - # files._files=[] - # files._buffer=[unicode(line, options.encoding) for line in sys.stdin.readlines()] ymlC = ymlCStyle() result = parse(ymlC, files, True, comment, packrat=True)