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

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

parent c7f0d18e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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:
+1 −1
Original line number Diff line number Diff line
@@ -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