Commit 58106de9 authored by Andrey Filippov's avatar Andrey Filippov

fixed errors for python3: .decode('ISO-8859-1'), input_raw -> input()

parent c7f0d18e
......@@ -131,7 +131,7 @@ plist = []
all_downloaded = False
for i in range(len(cams)):
raw_input(bcolors.OKGREEN+"Connect camera (eSATA) to PC (eSATA/SATA). Press Enter to continue..."+bcolors.ENDC)
input(bcolors.OKGREEN+"Connect camera (eSATA) to PC (eSATA/SATA). Press Enter to continue..."+bcolors.ENDC)
proceed_to_next = False
t = 0
while not all_downloaded:
......@@ -179,4 +179,4 @@ for i in range(len(cams)):
for cam in cams:
cam['obj'].ssd_to_camera()
print("Done")
\ No newline at end of file
print("Done")
......@@ -17,7 +17,7 @@ def shout(cmd):
#subprocess.call(cmd,shell=True)
ret_str = ""
try:
ret_str = subprocess.check_output(cmd,shell=True)
ret_str = subprocess.check_output(cmd,shell=True).decode('ISO-8859-1')
except subprocess.CalledProcessError as e:
ret_str = str(e.returncode)
return ret_str
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment