diff options
author | drebs <drebs@leap.se> | 2013-05-01 16:12:33 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-05-01 16:23:50 -0300 |
commit | f2d588a965ee7fd76985d16b5ad93dc66b9d2be1 (patch) | |
tree | 8aecf4fb6d658a768ba2e7d7e14f43970e83e4b8 /src/leap/soledad/__init__.py | |
parent | f0f07d240cbd5e7135076da0b1ce1dddb04fbc25 (diff) |
Fix some items from second review.
Items are:
* remove unused imports.
* __init__.py: initialize variable before read from file.
* backends/leap_backend.py: Fix mistyped exception name, fix docstring of
encryption function.
Diffstat (limited to 'src/leap/soledad/__init__.py')
-rw-r--r-- | src/leap/soledad/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/soledad/__init__.py b/src/leap/soledad/__init__.py index fb4c5520..2138e14e 100644 --- a/src/leap/soledad/__init__.py +++ b/src/leap/soledad/__init__.py @@ -264,7 +264,7 @@ class Soledad(object): logger.info('Creating directory: %s.' % path) os.makedirs(path) else: - logger.warning('Using existent directory: %s.' % path) + logger.info('Using existent directory: %s.' % path) else: raise NotADirectory(path) @@ -325,7 +325,8 @@ class Soledad(object): # does the file exist in disk? if not os.path.isfile(self.secret_path): return False - # is it symmetrically encrypted? + # is it symfetrically encrypted? + content = None with open(self.secret_path, 'r') as f: content = f.read() if not self._crypto.is_encrypted_sym(content): |