Browse code

Fix reading dot graphs from standard input (fixes #60)

Thanks to zxgio for suggesting the fix.

Jonas Hörsch authored on 29/08/2018 09:03:33 • José Fonseca committed on 30/08/2018 09:29:24
Showing 1 changed files

... ...
@@ -72,7 +72,7 @@ Shortcuts:
72 72
     win.set_filter(options.filter)
73 73
     if inputfile and len(inputfile) >= 1:
74 74
         if inputfile == '-':
75
-            win.set_dotcode(sys.stdin.read())
75
+            win.set_dotcode(sys.stdin.buffer.read())
76 76
         else:
77 77
             win.open_file(inputfile)
78 78