* tools/dist/release.py
(get_keys): Give a local variable a meaningful name in preparation for adding
another NamedTemporaryFile instance.
.
While there, wrap to 80 columns.
git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1902729 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tools/dist/release.py b/tools/dist/release.py
index b48a27f..f9e78a3 100755
--- a/tools/dist/release.py
+++ b/tools/dist/release.py
@@ -1469,10 +1469,14 @@
def get_keys(args):
'Import the LDAP-based KEYS file to gpg'
- with tempfile.NamedTemporaryFile() as tmpfile:
+ with tempfile.NamedTemporaryFile() as keysfile:
keyspath = tmpfile.name
- subprocess.check_call([os.path.dirname(__file__) + '/make-keys.sh', '-c', os.path.dirname(__file__) + '/../../COMMITTERS', '-o', keyspath])
- subprocess.check_call(['gpg', '--import', keyspath])
+ subprocess.check_call([
+ os.path.dirname(__file__) + '/make-keys.sh',
+ '-c', os.path.dirname(__file__) + '/../../COMMITTERS',
+ '-o', keysfile.name,
+ ])
+ subprocess.check_call(['gpg', '--import', keysfile.name])
def add_to_changes_dict(changes_dict, audience, section, change, revision):
# Normalize arguments