backups: Minor styling fixes

- Run yapf

- Fix flake8 errors/warnings.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2019-02-03 17:00:24 -05:00
1 parent c22bec1cf4
commit de22c79665
3 files changed
+42 -33

No files matched your search

+4 -3
View File
@@ -30,7 +30,7 @@ TIMEOUT = 5
class AlreadyMountedError(Exception):
pass
"""Exception raised when mount point is already mounted."""
def parse_arguments():
@@ -112,6 +112,7 @@ def _is_mounted(mountpoint):
def subcommand_is_mounted(arguments):
"""Print whether a path is already mounted."""
print(json.dumps(_is_mounted(arguments.mountpoint)))
@@ -119,8 +120,8 @@ def read_password():
"""Read the password from stdin."""
if sys.stdin.isatty():
return ''
else:
return ''.join(sys.stdin)
return ''.join(sys.stdin)
def main():