Removed whitespace on empty lines
This commit is contained in:
parent
c96e2f252c
commit
5af0996259
6 changed files with 8 additions and 8 deletions
|
|
@ -18,7 +18,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
# Connect
|
# Connect
|
||||||
connect_to_network()
|
connect_to_network()
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
print_standard('\nDone.')
|
print_standard('\nDone.')
|
||||||
#pause("Press Enter to exit...")
|
#pause("Press Enter to exit...")
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ if __name__ == '__main__':
|
||||||
else:
|
else:
|
||||||
if not re.search(r'^-*(h|help\?)', run_mode, re.IGNORECASE):
|
if not re.search(r'^-*(h|help\?)', run_mode, re.IGNORECASE):
|
||||||
print_error('Invalid mode.')
|
print_error('Invalid mode.')
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
print_standard('\nDone.')
|
print_standard('\nDone.')
|
||||||
pause("Press Enter to exit...")
|
pause("Press Enter to exit...")
|
||||||
|
|
|
||||||
|
|
@ -23,14 +23,14 @@ if __name__ == '__main__':
|
||||||
run_program('amixer -q set "PCM" 90% unmute'.split())
|
run_program('amixer -q set "PCM" 90% unmute'.split())
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
print_error('Failed to set volume')
|
print_error('Failed to set volume')
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
for mode in ['pink', 'wav']:
|
for mode in ['pink', 'wav']:
|
||||||
run_program(
|
run_program(
|
||||||
cmd = 'speaker-test -c 2 -l 1 -t {}'.format(mode).split(),
|
cmd = 'speaker-test -c 2 -l 1 -t {}'.format(mode).split(),
|
||||||
check = False,
|
check = False,
|
||||||
pipe = False)
|
pipe = False)
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
#print_standard('\nDone.')
|
#print_standard('\nDone.')
|
||||||
#pause("Press Enter to exit...")
|
#pause("Press Enter to exit...")
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ if __name__ == '__main__':
|
||||||
try_and_print(message='DNS Resolution:', function=ping, cs='OK')
|
try_and_print(message='DNS Resolution:', function=ping, cs='OK')
|
||||||
try_and_print(message='Speedtest:', function=speedtest,
|
try_and_print(message='Speedtest:', function=speedtest,
|
||||||
print_return=True)
|
print_return=True)
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
print_standard('\nDone.')
|
print_standard('\nDone.')
|
||||||
#pause("Press Enter to exit...")
|
#pause("Press Enter to exit...")
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ if __name__ == '__main__':
|
||||||
else:
|
else:
|
||||||
# Couldn't connect
|
# Couldn't connect
|
||||||
print_error('ERROR: No network connectivity.')
|
print_error('ERROR: No network connectivity.')
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
print_standard('\nDone.')
|
print_standard('\nDone.')
|
||||||
#pause("Press Enter to exit...")
|
#pause("Press Enter to exit...")
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ def scan_file(file_path, search):
|
||||||
except Exception:
|
except Exception:
|
||||||
# Ignore errors since files may be corrupted
|
# Ignore errors since files may be corrupted
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return entry.path if match else None
|
return entry.path if match else None
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -72,7 +72,7 @@ if __name__ == '__main__':
|
||||||
print_standard(match)
|
print_standard(match)
|
||||||
else:
|
else:
|
||||||
print_error('No matches found.')
|
print_error('No matches found.')
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
print_standard('\nDone.')
|
print_standard('\nDone.')
|
||||||
#pause("Press Enter to exit...")
|
#pause("Press Enter to exit...")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue