Permalink
Browse files

PEP8 coding guidelines, whitespace

  • Loading branch information...
1 parent efeba03 commit 5bb223cf7413e7cdfca303b1b11b8129ae723e5f @dregad dregad committed Feb 8, 2014
Showing with 1 addition and 7 deletions.
  1. +1 −7 buildrelease.py
View
@@ -59,28 +59,22 @@ def usage():
def gpg_sign_tarball(filename):
''' Sign the file using GPG '''
-
gpgsign = "gpg -b -a %s" + path.abspath(path.join(os.curdir, filename))
try:
subprocess.check_call(gpgsign % '--batch --yes ', shell=True)
except subprocess.CalledProcessError:
print "WARNING: GPG signature failed; to sign manually, run\n" \
- " %s" % (
- gpgsign % ''
- )
+ " %s" % (gpgsign % '')
def generate_checksum(filename):
''' Generate MD5 and SHA1 checksums for the file '''
-
f = open("%s.digests" % filename, 'w')
-
for method in ("md5", "sha1"):
checksum_cmd = "%ssum --binary " % method
checksum = os.popen(checksum_cmd + filename).read()
f.write("%s\n" % checksum)
print " %s: %s" % (method, checksum.rstrip())
-
f.close()

0 comments on commit 5bb223c

Please sign in to comment.