Remove extra output handing logic in GPG.encrypt_file().
parent
f357c16a21
commit
b09adb3f19
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue