File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,9 @@ def get_passphrase(passphrase=passphrase):
228
228
inputfile .seek (0 )
229
229
g = gnupg .GPG ()
230
230
result = g .decrypt_file (
231
- file = inputfile , passphrase = get_passphrase (), output = temp_filename
231
+ fileobj_or_path = inputfile ,
232
+ passphrase = get_passphrase (),
233
+ output = temp_filename ,
232
234
)
233
235
if not result :
234
236
raise DecryptionError ("Decryption failed; status: %s" % result .status )
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ using GPG. ::
119
119
Requirements:
120
120
121
121
- Install the python package python-gnupg:
122
- ``pip install python-gnupg ``.
122
+ ``pip install python-gnupg>=0.5.0 ``.
123
123
- You need a GPG key. (`GPG manual `_)
124
124
- Set the setting ``DBBACKUP_GPG_RECIPIENT `` to the name of the GPG key.
125
125
Original file line number Diff line number Diff line change 6
6
psycopg2
7
7
pylint
8
8
python-dotenv
9
- python-gnupg
9
+ python-gnupg>=0.5.0
10
10
pytz
11
11
testfixtures
12
12
tox
You can’t perform that action at this time.
0 commit comments