aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-03-30 18:33:09 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-03-30 18:33:09 -0400
commit207146d12f224d420db8d67e86ceff53d3768cb7 (patch)
treeedc36b07b86e4313c4fa166e9c3cb95e42a5a4de
parent4d1673ea2d845709f1fed3cd314c7a36e53a1c65 (diff)
downloadb4-207146d12f224d420db8d67e86ceff53d3768cb7.tar.gz
Clean up stray debug data
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py1
-rw-r--r--b4/pr.py4
2 files changed, 2 insertions, 3 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index acb3125..ca1bf60 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -11,6 +11,7 @@ import os
import fnmatch
import email.utils
import email.policy
+import email.header
import requests
import urllib.parse
import datetime
diff --git a/b4/pr.py b/b4/pr.py
index 015375a..25d693b 100644
--- a/b4/pr.py
+++ b/b4/pr.py
@@ -13,7 +13,7 @@ import mailbox
from datetime import timedelta
from tempfile import mkstemp
-from email import utils, charset, header
+from email import utils, charset
charset.add_charset('utf-8', None)
@@ -129,7 +129,6 @@ def attest_fetch_head(gitdir, lmsg):
attfail = b4.FAIL_SIMPLE
# Is FETCH_HEAD a tag or a commit?
htype = b4.git_get_command_lines(gitdir, ['cat-file', '-t', 'FETCH_HEAD'])
- lsig = None
passing = False
out = ''
otype = 'unknown'
@@ -224,7 +223,6 @@ def explode(gitdir, lmsg, savefile):
# Fix From lines to make sure this is a valid mboxo
out = re.sub(r'^From (?![a-f0-9]+ \w+ \w+ \d+ \d+:\d+:\d+ \d+$)', '>From ', out, 0, re.M)
- print(out)
# Save patches into a temporary file
patchmbx = mkstemp()[1]