mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
c22bec1cf4
commit
de22c79665
3 files changed
+42
-33
No files matched your search
+4
-3
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user