From a20e459b97f44a084e3c4be32e7140ee54de5735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarno=20Sepp=C3=A4nen?= Date: Sun, 18 May 2014 12:36:22 +0300 Subject: [PATCH] Remove spurious 'in' directory --- gpgstore.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpgstore.py b/gpgstore.py index 55e3e54..fa98d3e 100644 --- a/gpgstore.py +++ b/gpgstore.py @@ -20,9 +20,9 @@ class GpgStore(object): if not path: path = hexlify(os.urandom(20)) path = path[:2] + '/' + path[2:] - encdir = self.encroot + '/' + path[:2] - if not os.path.exists(encdir): - os.mkdir(encdir, 0755) + encdir = self.encroot + '/' + path[:2] + if not os.path.exists(encdir): + os.mkdir(encdir, 0755) res = self.gpg.encrypt(data, self.keyid, armor=False) if not res.ok: log.error("encryption failed (keyid %s), %s: %s",