Skip to content
Snippets Groups Projects
Commit 418afc9e authored by Daniel Brown's avatar Daniel Brown
Browse files

fixing utf8 pipe reading hopefully

parent da1f0e11
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,7 @@ from __future__ import division ...@@ -28,6 +28,7 @@ from __future__ import division
from __future__ import print_function from __future__ import print_function
from __future__ import unicode_literals from __future__ import unicode_literals
import codecs
import uuid import uuid
import sys import sys
import os import os
...@@ -1498,8 +1499,6 @@ class kat(object): ...@@ -1498,8 +1499,6 @@ class kat(object):
duration = 2 # Duration for searching for open pipe duration = 2 # Duration for searching for open pipe
import codecs
try: try:
while fifo is None: while fifo is None:
try: try:
...@@ -1517,8 +1516,8 @@ class kat(object): ...@@ -1517,8 +1516,8 @@ class kat(object):
for line in fifo: for line in fifo:
if (sys.version_info < (3, 0)): #if (sys.version_info < (3, 0)):
line = line.decode("utf8") # Make sure we're using unicode encoding # line = line.decode("utf8") # Make sure we're using unicode encoding
v = line.split(u":", 1) v = line.split(u":", 1)
......
...@@ -17,7 +17,7 @@ errors = [] ...@@ -17,7 +17,7 @@ errors = []
testdir = os.getcwd() testdir = os.getcwd()
print("----------------------------------------------------------------------------------------")
for path, folders, files in os.walk("./test_scripts"): for path, folders, files in os.walk("./test_scripts"):
...@@ -26,6 +26,7 @@ for path, folders, files in os.walk("./test_scripts"): ...@@ -26,6 +26,7 @@ for path, folders, files in os.walk("./test_scripts"):
filename = os.path.join(path, filename) filename = os.path.join(path, filename)
with open(filename) as f: with open(filename) as f:
print("!-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*")
print("RUNNING: " + filename) print("RUNNING: " + filename)
try: try:
os.chdir(path) os.chdir(path)
...@@ -45,7 +46,9 @@ for path, folders, files in os.walk("./test_scripts"): ...@@ -45,7 +46,9 @@ for path, folders, files in os.walk("./test_scripts"):
sys.stderr.flush() sys.stderr.flush()
finally: finally:
os.chdir(testdir) os.chdir(testdir)
print("----------------------------------------------------------------------------------------") print("!------------------------------------------------------------------------------------------------")
print("")
print("")
if len(errors) > 0: if len(errors) > 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment