Fix issues found by flake8 on the Python scripts

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
This commit is contained in:
Benjamin Drung 2023-01-30 19:29:30 +01:00
parent bd770fa6b1
commit 932166484b
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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