Better variable names

This commit is contained in:
Daniel Quinn 2016-01-23 03:05:40 +00:00
parent 9e596953a3
commit 4f1bf81d5b

View File

@ -11,13 +11,14 @@ class GnuPG(object):
gpg = gnupg.GPG(gnupghome=settings.GNUPG_HOME)
@classmethod
def decrypted(cls, path):
return cls.gpg.decrypt_file(path, passphrase=settings.PASSPHRASE).data
def decrypted(cls, file_handle):
return cls.gpg.decrypt_file(
file_handle, passphrase=settings.PASSPHRASE).data
@classmethod
def encrypted(cls, path):
def encrypted(cls, file_handle):
return cls.gpg.encrypt_file(
path,
file_handle,
recipients=None,
passphrase=settings.PASSPHRASE,
symmetric=True