1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

Apply some autopep8-python2 suggestions

This commit is contained in:
Daniel Martí 2014-12-31 16:42:26 +01:00
parent e39602586f
commit 14f654fabc
8 changed files with 39 additions and 35 deletions

View File

@ -391,6 +391,7 @@ def getsrclibvcs(name):
class vcs:
def __init__(self, remote, local):
# svn, git-svn and bzr may require auth
@ -439,8 +440,7 @@ class vcs:
writeback = False
else:
deleterepo = True
logging.info(
"Repository details for %s changed - deleting" % (
logging.info("Repository details for %s changed - deleting" % (
self.local))
else:
deleterepo = True
@ -592,7 +592,8 @@ class vcs_git(vcs):
def latesttags(self, alltags, number):
self.checkrepo()
p = FDroidPopen(['echo "' + '\n'.join(alltags) + '" | '
+ 'xargs -I@ git log --format=format:"%at @%n" -1 @ | '
+
'xargs -I@ git log --format=format:"%at @%n" -1 @ | '
+ 'sort -n | awk \'{print $2}\''],
cwd=self.local, shell=True, output=False)
return p.output.splitlines()[-number:]
@ -1005,6 +1006,7 @@ def parse_androidmanifests(paths, ignoreversions=None):
class FDroidException(Exception):
def __init__(self, value, detail=None):
self.value = value
self.detail = detail
@ -1610,6 +1612,7 @@ def isApkDebuggable(apkfile, config):
class AsynchronousFileReader(threading.Thread):
'''
Helper class to implement asynchronous reading of a file
in a separate thread. Pushes read lines on a queue to

View File

@ -29,6 +29,7 @@ srclibs = None
class MetaDataException(Exception):
def __init__(self, value):
self.value = value