fix PEP8 "E225 missing whitespace around operator"

This commit is contained in:
Hans-Christoph Steiner 2014-05-01 22:30:44 -04:00
parent c54cabe741
commit 7e17fafc14
5 changed files with 6 additions and 6 deletions

View file

@ -1055,7 +1055,7 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
# from sdk.dir, if necessary # from sdk.dir, if necessary
if build['oldsdkloc']: if build['oldsdkloc']:
sdkloc = re.match(r".*^sdk.dir=(\S+)$.*", props, sdkloc = re.match(r".*^sdk.dir=(\S+)$.*", props,
re.S|re.M).group(1) re.S | re.M).group(1)
props += "sdk-location=%s\n" % sdkloc props += "sdk-location=%s\n" % sdkloc
else: else:
props += "sdk.dir=%s\n" % config['sdk_path'] props += "sdk.dir=%s\n" % config['sdk_path']

View file

@ -51,7 +51,7 @@ def getrepofrompage(url):
return (repotype, repo) return (repotype, repo)
# Works for Google Code and BitBucket... # Works for Google Code and BitBucket...
index=page.find('git clone') index = page.find('git clone')
if index != -1: if index != -1:
repotype = 'git' repotype = 'git'
repo = page[index + 10:] repo = page[index + 10:]
@ -63,7 +63,7 @@ def getrepofrompage(url):
return (repotype, repo) return (repotype, repo)
# Google Code only... # Google Code only...
index=page.find('svn checkout') index = page.find('svn checkout')
if index != -1: if index != -1:
repotype = 'git-svn' repotype = 'git-svn'
repo = page[index + 13:] repo = page[index + 13:]

View file

@ -98,7 +98,7 @@ def main():
for dev in devs: for dev in devs:
logging.info("Installing %s on %s..." % (apk, dev)) logging.info("Installing %s on %s..." % (apk, dev))
p = FDroidPopen(["adb", "-s", dev, "install", apk]) p = FDroidPopen(["adb", "-s", dev, "install", apk])
fail= "" fail = ""
for line in p.stdout.splitlines(): for line in p.stdout.splitlines():
if line.startswith("Failure"): if line.startswith("Failure"):
fail = line[9:-1] fail = line[9:-1]

View file

@ -128,7 +128,7 @@ def main():
p = FDroidPopen(['keytool', '-list', p = FDroidPopen(['keytool', '-list',
'-alias', keyalias, '-keystore', config['keystore'], '-alias', keyalias, '-keystore', config['keystore'],
'-storepass:file', config['keystorepassfile']]) '-storepass:file', config['keystorepassfile']])
if p.returncode !=0: if p.returncode != 0:
logging.info("Key does not exist - generating...") logging.info("Key does not exist - generating...")
p = FDroidPopen(['keytool', '-genkey', p = FDroidPopen(['keytool', '-genkey',
'-keystore', config['keystore'], '-alias', keyalias, '-keystore', config['keystore'], '-alias', keyalias,

View file

@ -879,7 +879,7 @@ def main():
parser.add_option("-I", "--icons", action="store_true", default=False, parser.add_option("-I", "--icons", action="store_true", default=False,
help="Resize all the icons exceeding the max pixel size and exit") help="Resize all the icons exceeding the max pixel size and exit")
parser.add_option("-e", "--editor", default="/etc/alternatives/editor", parser.add_option("-e", "--editor", default="/etc/alternatives/editor",
help="Specify editor to use in interactive mode. Default "+ help="Specify editor to use in interactive mode. Default " +
"is /etc/alternatives/editor") "is /etc/alternatives/editor")
parser.add_option("-w", "--wiki", default=False, action="store_true", parser.add_option("-w", "--wiki", default=False, action="store_true",
help="Update the wiki") help="Update the wiki")