Skip to content

Commit 80c0dfd

Browse files
cynddlCloudyPadmal
authored andcommitted
Fix broken initialization on Python 3 (#85)
1 parent 78ac311 commit 80c0dfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PSL/Peripherals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from __future__ import print_function
2-
import commands_proto as CP
2+
import PSL.commands_proto as CP
33
import numpy as np
44
import time, inspect
55

PSL/sciencelab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2864,7 +2864,7 @@ def read_flash(self, page, location):
28642864
self.raiseException(ex, "Communication Error , Function : " + inspect.currentframe().f_code.co_name)
28652865

28662866
def __stoa__(self, s):
2867-
return [ord(a) for a in s]
2867+
return [ord(a) for a in s.decode('utf-8')]
28682868

28692869
def __atos__(self, a):
28702870
return ''.join(chr(e) for e in a)

0 commit comments

Comments
 (0)