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 = [] ...@@ -131,7 +131,7 @@ plist = []
all_downloaded = False all_downloaded = False
for i in range(len(cams)): 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 proceed_to_next = False
t = 0 t = 0
while not all_downloaded: while not all_downloaded:
......
...@@ -17,7 +17,7 @@ def shout(cmd): ...@@ -17,7 +17,7 @@ def shout(cmd):
#subprocess.call(cmd,shell=True) #subprocess.call(cmd,shell=True)
ret_str = "" ret_str = ""
try: 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: except subprocess.CalledProcessError as e:
ret_str = str(e.returncode) ret_str = str(e.returncode)
return ret_str 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