# HG changeset patch # User Volker Birk # Date 1496957458 -7200 # Node ID 7026ccc7a60e388fdf38ea862f7b2e706de2c75f # Parent 519fb60037cef01bb13eab025b448b516bd8c9fe workaround is harmful now, bug does not exist any more diff -r 519fb60037ce -r 7026ccc7a60e yml2c --- a/yml2c Sat Jun 03 19:30:27 2017 +0200 +++ b/yml2c Thu Jun 08 23:30:58 2017 +0200 @@ -67,9 +67,9 @@ # 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()] + #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) diff -r 519fb60037ce -r 7026ccc7a60e yml2proc --- a/yml2proc Sat Jun 03 19:30:27 2017 +0200 +++ b/yml2proc Thu Jun 08 23:30:58 2017 +0200 @@ -118,12 +118,6 @@ if not options.emptyinput: 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 siome platform - if args in [[],['-']] : - files._files=[] - files._buffer=[unicode(line, options.encoding) for line in sys.stdin.readlines()] if options.xml: rtext = ""