yml2proc
changeset 11 7026ccc7a60e
parent 7 f81a4471bc28
child 20 c936066cff62
--- 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 = ""