From 4d8c20e2744091a4e5eface778f9293303173632 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 9 Oct 2017 15:01:50 -0600 Subject: [PATCH] Delete password variable once it's used --- standardnotes_fs.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/standardnotes_fs.py b/standardnotes_fs.py index cfb476c..90a5de6 100644 --- a/standardnotes_fs.py +++ b/standardnotes_fs.py @@ -62,6 +62,7 @@ def main(): format='%(levelname)-8s: %(message)s') if args.verbosity: args.foreground = True + # figure out config file config_file = args.config if args.config else CONFIG_FILE config_file = pathlib.Path(config_file) @@ -126,6 +127,7 @@ def main(): sn_api = StandardNotesAPI(sync_url, username) if not keys: keys = sn_api.genKeys(password) + del password sn_api.signIn(keys) log_msg = 'Successfully logged into account "%s".' logging.info(log_msg % username) @@ -155,7 +157,10 @@ def main(): if login_success: logging.info('Starting FUSE filesystem.') - fuse = FUSE(StandardNotesFUSE(sn_api), args.mountpoint, foreground=args.foreground, nothreads=True) + fuse = FUSE(StandardNotesFUSE(sn_api), + args.mountpoint, + foreground=args.foreground, + nothreads=True) # benefits don't outweigh the costs logging.info('Exiting.')