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
def main():
parser = optparse.OptionParser(
description="Check if any of a package's build or binary "
"dependencies are in universe or multiverse. "
"Run this inside an unpacked source package")
description = "Check if any of a package's build or binary " + \
"dependencies are in universe or multiverse. " + \
"Run this inside an unpacked source package"
parser = optparse.OptionParser(description=description)
parser.parse_args()
apt_cache = apt.Cache()

View File

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

View File

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