From b09adb3f1901228231dd595682b71136c07129ec Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Mon, 15 Apr 2013 01:13:47 +0000 Subject: [PATCH] Remove extra output handing logic in GPG.encrypt_file(). --- gnupg/gnupg.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gnupg/gnupg.py b/gnupg/gnupg.py index b47da42..6d384e9 100644 --- a/gnupg/gnupg.py +++ b/gnupg/gnupg.py @@ -829,10 +829,6 @@ class GPG(object): args.append('--recipient "%s"' % recipient) if armor: args.append('--armor') - if output: # write the output to a file with the specified name - if os.path.exists(output): - os.remove(output) # to avoid overwrite confirmation message - args.append('--output "%s"' % output) if sign: args.append('--sign --default-key "%s"' % sign) if always_trust: