mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-07-23 21:01:28 +00:00
Fix issues found by flake8 on the Python scripts
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
This commit is contained in:
parent
bd770fa6b1
commit
932166484b
@ -16,7 +16,6 @@
|
||||
|
||||
from collections import defaultdict
|
||||
import optparse
|
||||
import re
|
||||
import sys
|
||||
|
||||
import apt
|
||||
@ -215,7 +214,8 @@ def request_backport(package_spph, source, destinations):
|
||||
"",
|
||||
"[Scope]",
|
||||
"",
|
||||
" * List the Ubuntu release you will backport from, and the specific package version.",
|
||||
" * List the Ubuntu release you will backport from,"
|
||||
" and the specific package version.",
|
||||
"",
|
||||
" * List the Ubuntu release(s) you will backport to.",
|
||||
"",
|
||||
@ -250,7 +250,7 @@ def request_backport(package_spph, source, destinations):
|
||||
series = distro.getSeries(dest)
|
||||
try:
|
||||
bug.addTask(target=series.getSourcePackage(name=pkgname))
|
||||
except:
|
||||
except Exception:
|
||||
break
|
||||
|
||||
Logger.info("Backport request filed as %s", bug.web_link)
|
||||
|
@ -29,7 +29,7 @@ from optparse import OptionParser
|
||||
from ubuntutools.lp.udtexceptions import (SeriesNotFoundException,
|
||||
PackageNotFoundException,
|
||||
PocketDoesNotExistError,)
|
||||
from ubuntutools.lp.lpapicache import Distribution, PersonTeam
|
||||
from ubuntutools.lp.lpapicache import Distribution, Launchpad, PersonTeam
|
||||
from launchpadlib.credentials import TokenAuthorizationException
|
||||
from ubuntutools.misc import split_release_pocket
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user