chiark / gitweb /
fix PEP8 "E261 at least two spaces before inline comment"
authorHans-Christoph Steiner <hans@eds.org>
Fri, 2 May 2014 03:48:12 +0000 (23:48 -0400)
committerHans-Christoph Steiner <hans@eds.org>
Tue, 6 May 2014 15:45:04 +0000 (11:45 -0400)
fdroidserver/import.py
fdroidserver/init.py
fdroidserver/metadata.py

index 15a4414cfc6802f8177592ff986d535714647aed..e5d0357215de77d1c212e029b101e122dde02bcb 100644 (file)
@@ -130,7 +130,7 @@ def main():
     projecttype = None
     issuetracker = None
     license = None
-    website = url #by default, we might override it
+    website = url  # by default, we might override it
     if url.startswith('git://'):
         projecttype = 'git'
         repo = url
index b0ca3faa62378290873aebe4f5397ac6bf570cfb..235a6a82cf9a55854ce95c5cc2f306f81f3c9764 100644 (file)
@@ -61,7 +61,7 @@ def disable_in_config(key, value):
 def genpassword():
     '''generate a random password for when generating keys'''
     h = hashlib.sha256()
-    h.update(os.urandom(16)) # salt
+    h.update(os.urandom(16))  # salt
     h.update(bytes(socket.getfqdn()))
     return h.digest().encode('base64').strip()
 
@@ -213,7 +213,7 @@ def main():
     if options.distinguished_name:
         keydname = options.distinguished_name
         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
         disable_in_config('keypass', 'never used with smartcard')
         write_to_config('smartcardoptions',
index 116f6e287133c8ea57c8553fdfba141655b4977a..cd44cbc15dd443fc40f0e1806bf81639c3bb3bd9 100644 (file)
@@ -335,7 +335,7 @@ class DescriptionFormatter:
                 self.text_html += '<ol>'
                 self.state = self.stOL
             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.text_html += '</li>'
         else: