fix PEP8 "E261 at least two spaces before inline comment"

This commit is contained in:
Hans-Christoph Steiner 2014-05-01 23:48:12 -04:00
parent aa5f317c26
commit 6abb390547
3 changed files with 4 additions and 4 deletions

View file

@ -130,7 +130,7 @@ def main():
projecttype = None projecttype = None
issuetracker = None issuetracker = None
license = None license = None
website = url #by default, we might override it website = url # by default, we might override it
if url.startswith('git://'): if url.startswith('git://'):
projecttype = 'git' projecttype = 'git'
repo = url repo = url

View file

@ -61,7 +61,7 @@ def disable_in_config(key, value):
def genpassword(): def genpassword():
'''generate a random password for when generating keys''' '''generate a random password for when generating keys'''
h = hashlib.sha256() h = hashlib.sha256()
h.update(os.urandom(16)) # salt h.update(os.urandom(16)) # salt
h.update(bytes(socket.getfqdn())) h.update(bytes(socket.getfqdn()))
return h.digest().encode('base64').strip() return h.digest().encode('base64').strip()
@ -213,7 +213,7 @@ def main():
if options.distinguished_name: if options.distinguished_name:
keydname = options.distinguished_name keydname = options.distinguished_name
write_to_config('keydname', keydname) write_to_config('keydname', keydname)
if keystore == 'NONE': # we're using a smartcard if keystore == 'NONE': # we're using a smartcard
write_to_config('repo_keyalias', '1') # seems to be the default write_to_config('repo_keyalias', '1') # seems to be the default
disable_in_config('keypass', 'never used with smartcard') disable_in_config('keypass', 'never used with smartcard')
write_to_config('smartcardoptions', write_to_config('smartcardoptions',

View file

@ -335,7 +335,7 @@ class DescriptionFormatter:
self.text_html += '<ol>' self.text_html += '<ol>'
self.state = self.stOL self.state = self.stOL
self.text_html += '<li>' self.text_html += '<li>'
self.text_plain += '* ' #TODO: lazy - put the numbers in! self.text_plain += '* ' # TODO: lazy - put the numbers in!
self.addtext(line[1:]) self.addtext(line[1:])
self.text_html += '</li>' self.text_html += '</li>'
else: else: