Here is the affected code (iso_path = "G:\Diablo 3.iso"):
def get_iso_file_names(self, iso_path):
iso_path = abspath(iso_path)
if iso_path in self.cache:
return self.cache[iso_path]
else: self.cache[iso_path] = None
command = [self.info.iso_extractor,'l',iso_path]
try:
output = run_command(command)
except Exception, err: log.exception(err) log.debug('command >>%s' % ' '.join(command))
output = None
if not output: return []
lines = output.split(os.linesep)
start = None
new_lines = []
for line in lines:
if line.startswith('---'):
if start is None: start = True else: break
elif start: new_lines.append(line)
if not new_lines:
return []
lines = new_lines
file_info = [line.split() for line in lines]
file_names = [os.path.normpath(x[-1]) for x in file_info] <====LINE 542
Here is the affected code (iso_path = "G:\Diablo 3.iso"): file_names( self, iso_path): iso_path]
self. cache[iso_ path] = None iso_extractor, 'l',iso_ path] command)
log. exception( err)
log. debug(' command >>%s' % ' '.join(command))
def get_iso_
iso_path = abspath(iso_path)
if iso_path in self.cache:
return self.cache[
else:
command = [self.info.
try:
output = run_command(
except Exception, err:
output = None
if not output: return []
lines = output. split(os. linesep) ('---') :
start = True
else:
break
new_lines. append( line)
start = None
new_lines = []
for line in lines:
if line.startswith
if start is None:
elif start:
if not new_lines:
return []
lines = new_lines
file_info = [line.split() for line in lines] normpath( x[-1]) for x in file_info] <====LINE 542
file_names = [os.path.