psychopy (1.61.03.dfsg-1) psychopy/app/coder/coder.py

Summary

 psychopy/app/coder/coder.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

--- psychopy-1.61.03.dfsg.orig/psychopy/app/coder/coder.py
+++ psychopy-1.61.03.dfsg/psychopy/app/coder/coder.py
@@ -1382,7 +1382,7 @@
 
             #load text from document
             if os.path.isfile(filename):
-                self.currentDoc.SetText(open(filename).read())
+                self.currentDoc.SetText(open(filename).read().decode('utf8'))
                 self.currentDoc.fileModTime = os.path.getmtime(filename) # JRG
                 self.fileHistory.AddFileToHistory(filename)
             else: