[Reportbug-commits] [reportbug] 01/04: use the correct email.encoders modules when attaching binary files; Closes: #850317

Sandro Tosi morph at moszumanska.debian.org
Sun Jan 22 23:18:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository reportbug.

commit 1bcb54b41937c8b1082be51f8fca5293c0c43359
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Jan 22 18:03:35 2017 -0500

    use the correct email.encoders modules when attaching binary files; Closes: #850317
---
 debian/changelog    | 8 ++++++++
 reportbug/submit.py | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 9e24f4f..e281064 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+reportbug (7.1.4) UNRELEASED; urgency=medium
+
+  * reportbug/submit.py
+    - use the correct email.encoders modules when attaching binary files;
+      Closes: #850317
+
+ -- Sandro Tosi <morph at debian.org>  Sun, 22 Jan 2017 18:03:02 -0500
+
 reportbug (7.1.3) unstable; urgency=medium
 
   * debian/control
diff --git a/reportbug/submit.py b/reportbug/submit.py
index 71bdeff..5cc1231 100644
--- a/reportbug/submit.py
+++ b/reportbug/submit.py
@@ -174,7 +174,7 @@ def mime_attach(body, attachments, charset, body_charset=None):
             part = MIMEBase(maintype, subtype)
             part.set_payload(fp.read())
             fp.close()
-            email.Encoders.encode_base64(part)
+            email.encoders.encode_base64(part)
         part.add_header('Content-Disposition', 'attachment',
                         filename=os.path.basename(attachment))
         message.attach(part)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git



More information about the Reportbug-commits mailing list