提交 5dc19177 编写于 作者: J Joerg Jaspert

small stuff to make python-flake8 happier

re is unused, spaces/newlines
(ignoring line length)
上级 82bfbe30
......@@ -21,7 +21,6 @@
import apt_pkg
import os
import re
import tempfile
from daklib.config import Config
......@@ -31,9 +30,11 @@ from daklib.regexes import re_field_package
from daklib.textutils import fix_maintainer
from daklib.utils import gpg_get_key_addresses, send_mail, TemplateSubst
class CommandError(Exception):
pass
class CommandFile(object):
def __init__(self, filename, data, log=None):
if log is None:
......@@ -135,7 +136,7 @@ class CommandFile(object):
session = DBConn().session()
keyrings = session.query(Keyring).filter_by(active=True).order_by(Keyring.priority)
keyring_files = [ k.keyring_name for k in keyrings ]
keyring_files = [k.keyring_name for k in keyrings]
signed_file = SignedFile(self.data, keyring_files)
if not signed_file.valid:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册