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

fix PEP8 "E203 whitespace before ':' or ','"

This commit is contained in:
Hans-Christoph Steiner 2014-05-01 22:06:59 -04:00
parent fccb990521
commit f1812d5935
6 changed files with 20 additions and 20 deletions

View File

@ -141,6 +141,6 @@ build_server_always = False
# Limit in number of characters that fields can take up
# Only the fields listed here are supported, defaults shown
char_limits = {
'Summary' : 50,
'Description' : 1500
'Summary': 50,
'Description': 1500
}

View File

@ -268,7 +268,7 @@ def check_repotrunk(app, branch=None):
def check_gplay(app):
time.sleep(15)
url = 'https://play.google.com/store/apps/details?id=' + app['id']
headers = {'User-Agent' : 'Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0'}
headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0'}
req = urllib2.Request(url, None, headers)
try:
resp = urllib2.urlopen(req, None, 20)

View File

@ -50,8 +50,8 @@ def get_default_config():
'keystore': '$HOME/.local/share/fdroidserver/keystore.jks',
'smartcardoptions': [],
'char_limits': {
'Summary' : 50,
'Description' : 1500
'Summary': 50,
'Description': 1500
},
'keyaliases': { },
}

View File

@ -68,7 +68,7 @@ def main():
if args:
vercodes = common.read_pkg_args(args, True)
apks = { appid : None for appid in vercodes }
apks = { appid: None for appid in vercodes }
# Get the signed apk with the highest vercode
for apkfile in sorted(glob.glob(os.path.join(output_dir, '*.apk'))):
@ -86,7 +86,7 @@ def main():
else:
apks = { common.apknameinfo(apkfile)[0] : apkfile for apkfile in
apks = { common.apknameinfo(apkfile)[0]: apkfile for apkfile in
sorted(glob.glob(os.path.join(output_dir, '*.apk'))) }
for appid, apk in apks.iteritems():

View File

@ -120,62 +120,62 @@ class FieldType():
# Generic value types
valuetypes = {
'int' : FieldType("Integer",
'int': FieldType("Integer",
r'^[1-9][0-9]*$', None,
[ 'FlattrID' ],
[ 'vercode' ]),
'http' : FieldType("HTTP link",
'http': FieldType("HTTP link",
r'^http[s]?://', None,
[ "Web Site", "Source Code", "Issue Tracker", "Donate" ], []),
'bitcoin' : FieldType("Bitcoin address",
'bitcoin': FieldType("Bitcoin address",
r'^[a-zA-Z0-9]{27,34}$', None,
[ "Bitcoin" ],
[ ]),
'litecoin' : FieldType("Litecoin address",
'litecoin': FieldType("Litecoin address",
r'^L[a-zA-Z0-9]{33}$', None,
[ "Litecoin" ],
[ ]),
'dogecoin' : FieldType("Dogecoin address",
'dogecoin': FieldType("Dogecoin address",
r'^D[a-zA-Z0-9]{33}$', None,
[ "Dogecoin" ],
[ ]),
'Bool' : FieldType("Boolean",
'Bool': FieldType("Boolean",
['Yes', 'No'], None,
[ "Requires Root" ],
[ ]),
'bool' : FieldType("Boolean",
'bool': FieldType("Boolean",
['yes', 'no'], None,
[ ],
[ 'submodules', 'oldsdkloc', 'forceversion', 'forcevercode',
'novcheck' ]),
'Repo Type' : FieldType("Repo Type",
'Repo Type': FieldType("Repo Type",
[ 'git', 'git-svn', 'svn', 'hg', 'bzr', 'srclib' ], None,
[ "Repo Type" ],
[ ]),
'archive' : FieldType("Archive Policy",
'archive': FieldType("Archive Policy",
r'^[0-9]+ versions$', None,
[ "Archive Policy" ],
[ ]),
'antifeatures' : FieldType("Anti-Feature",
'antifeatures': FieldType("Anti-Feature",
[ "Ads", "Tracking", "NonFreeNet", "NonFreeDep", "NonFreeAdd", "UpstreamNonFree" ], ',',
[ "AntiFeatures" ],
[ ]),
'autoupdatemodes' : FieldType("Auto Update Mode",
'autoupdatemodes': FieldType("Auto Update Mode",
r"^(Version .+|None)$", None,
[ "Auto Update Mode" ],
[ ]),
'updatecheckmodes' : FieldType("Update Check Mode",
'updatecheckmodes': FieldType("Update Check Mode",
r"^(Tags|Tags .+|RepoManifest|RepoManifest/.+|RepoTrunk|HTTP|Static|None)$", None,
[ "Update Check Mode" ],
[ ])

View File

@ -813,7 +813,7 @@ def make_index(apps, apks, repodir, archive, categories):
sys.exit(1)
# Copy the repo icon into the repo directory...
icon_dir = os.path.join(repodir ,'icons')
icon_dir = os.path.join(repodir, 'icons')
iconfilename = os.path.join(icon_dir, os.path.basename(config['repo_icon']))
shutil.copyfile(config['repo_icon'], iconfilename)