Changeset: 10215385acd8 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=10215385acd8
Modified Files:
        testing/process.py
Branch: mtest
Log Message:

Fix insert-null-byte.


diffs (23 lines):

diff --git a/testing/process.py b/testing/process.py
--- a/testing/process.py
+++ b/testing/process.py
@@ -96,13 +96,13 @@ class _BufferedPipe:
         first = True
         while True:
             c = fh.read(1024)
+            if first:
+                if type(c) is type(b''):
+                    self._empty = b''
+                    self._nl = b'\n'
+                    self._cr = b'\r'
+                    first = False
             if not c:
-                if first:
-                    if type(c) is type(b''):
-                        self._empty = b''
-                        self._nl = b'\n'
-                        self._cr = b'\r'
-                        first = False
                 queue.put(c)    # put '' if at EOF
                 break
             c = c.replace(self._cr, self._empty)
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to