Remove unneeded print statement

This commit is contained in:
Ken Roberts 2016-04-24 04:04:32 -07:00
parent 292606ba38
commit 28e14012a8
3 changed files with 4 additions and 6 deletions

View File

@ -223,8 +223,8 @@ class OpenLP(OpenLPMixin, QtWidgets.QApplication):
translate('OpenLP', 'Backup of the data folder failed!'))
return
message = translate('OpenLP',
'A backup of the data folder has been created '
'at {text}').format(text=data_folder_backup_path)
'A backup of the data folder has been created'
'at {text}'.format(text=data_folder_backup_path))
QtWidgets.QMessageBox.information(None, translate('OpenLP', 'Backup'), message)
# Update the version in the settings

View File

@ -336,7 +336,7 @@ def delete_file(file_path_name):
os.remove(file_path_name)
return True
except (IOError, OSError):
log.exception("Unable to delete file {name}".format(name=file_path_name))
log.exception("Unable to delete file {text}".format(text=file_path_name))
return False
@ -404,5 +404,5 @@ def check_binary_exists(program_path):
except Exception:
trace_error_handler(log)
runlog = ''
log.debug('check_output returned: {text}'.format(text=runlog))
log.debug('check_output returned: {text}'.format(text=runlog)
return runlog

View File

@ -160,8 +160,6 @@ def process_check_binary(program_path):
"""
program_type = None
runlog = check_binary_exists(program_path)
# NOTE: Unneeded print statement - let originator clear it out if needed
# print(runlog, type(runlog))
# Analyse the output to see it the program is mediainfo
for line in runlog.splitlines():
decoded_line = line.decode()