Break long lines into two commands.

This commit is contained in:
Benjamin Drung 2012-05-27 00:46:24 +02:00
parent 93fbe4c71c
commit 337917c4d9
3 changed files with 9 additions and 9 deletions

View File

@ -121,10 +121,10 @@ def check_binary_dependencies(apt_cache, control):
return any_unsupported return any_unsupported
def main(): def main():
parser = optparse.OptionParser( description = "Check if any of a package's build or binary " + \
description="Check if any of a package's build or binary " "dependencies are in universe or multiverse. " + \
"dependencies are in universe or multiverse. " "Run this inside an unpacked source package"
"Run this inside an unpacked source package") parser = optparse.OptionParser(description=description)
parser.parse_args() parser.parse_args()
apt_cache = apt.Cache() apt_cache = apt.Cache()

View File

@ -198,9 +198,9 @@ reportbug --configure for its configuration wizard.
sys.exit(1) sys.exit(1)
def main(): def main():
parser = optparse.OptionParser( description = 'Submit the Ubuntu changes in a package to Debian. ' + \
description='Submit the Ubuntu changes in a package to Debian. ' 'Run inside an unpacked Ubuntu source package.'
'Run inside an unpacked Ubuntu source package.') parser = optparse.OptionParser(description=description)
parser.parse_args() parser.parse_args()
if not os.path.exists('/usr/bin/reportbug'): if not os.path.exists('/usr/bin/reportbug'):

View File

@ -38,9 +38,9 @@ def extract(iso, path):
return stdout return stdout
def main(): def main():
desc = 'Given an ISO, %prog will display the Ubuntu version information'
parser = optparse.OptionParser(usage='%prog [options] iso...', parser = optparse.OptionParser(usage='%prog [options] iso...',
description='Given an ISO, %prog will display the Ubuntu version ' description=desc)
'information')
isos = parser.parse_args()[1] isos = parser.parse_args()[1]
err = False err = False