Your message dated Thu, 18 Aug 2016 16:31:52 +0000
with message-id <[email protected]>
and subject line Bug#833363: fixed in python-debian 0.1.29
has caused the Debian Bug report #833363,
regarding python-debian: please improve message when passing incorrect type to 
iter_paragraphs
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
833363: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833363
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-debian
Version: 0.1.28
Tags: patch
Severity: wishlist

Hi,

The attached patch replaces:

 TypeError: bytes or unicode/string required

with:

 TypeError: bytes or unicode/string required, not <class 'int'>

.. which is a little more useful for developers - they are almost
certainly going to do the same thing manually when debugging. :)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
diff --git a/lib/debian/deb822.py b/lib/debian/deb822.py
index c1dcb17..403fd95 100644
--- a/lib/debian/deb822.py
+++ b/lib/debian/deb822.py
@@ -1269,7 +1269,7 @@ class _gpg_multivalued(_multivalued):
             return s
         if isinstance(s, six.string_types):
             return s.encode(encoding)
-        raise TypeError('bytes or unicode/string required')
+        raise TypeError('bytes or unicode/string required, not %s' % type(s))
 
 
 class Dsc(_gpg_multivalued):

--- End Message ---
--- Begin Message ---
Source: python-debian
Source-Version: 0.1.29

We believe that the bug you reported is fixed in the latest version of
python-debian, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stuart Prescott <[email protected]> (supplier of updated python-debian package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 18 Aug 2016 23:27:48 +1000
Source: python-debian
Binary: python-debian python3-debian
Architecture: source
Version: 0.1.29
Distribution: unstable
Urgency: medium
Maintainer: Debian python-debian Maintainers 
<[email protected]>
Changed-By: Stuart Prescott <[email protected]>
Closes: 782904 833363 833368
Description: 
 python3-debian - Python 3 modules to work with Debian-related data formats
 python-debian - Python modules to work with Debian-related data formats
Changes:
 python-debian (0.1.29) unstable; urgency=medium
 .
   * Fix handling of gpgv output from gnupg 2 (Closes: #782904).
   * Explain what type was passed when raising the TypeError, with thanks to
     Chris Lamb <[email protected]> for the patch (Closes: #833363).
   * Include examples and extra docs in python3-debian package (Closes: 
#833368).
Checksums-Sha1: 
 1c03a8ca4c00d11ff7e51132e96373f93744d317 2368 python-debian_0.1.29.dsc
 c9b19377f49a5a899770bf437c44c43847b28233 292492 python-debian_0.1.29.tar.xz
Checksums-Sha256: 
 2a69c435d22baea267bfd97c5872fb1a74a96660e9713f927a5c4c5ccb382d06 2368 
python-debian_0.1.29.dsc
 932c81517a75fb4a86944b247b136895b08bbb010c28631c25afdf006d8b3373 292492 
python-debian_0.1.29.tar.xz
Files: 
 afecd3c8c12ca20fe859c2417b616886 2368 python optional python-debian_0.1.29.dsc
 a84abae7774cd4733257a8efcdfe246e 292492 python optional 
python-debian_0.1.29.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJXtb96AAoJELvBfrsTlvL3ou4QAKSFdKxmVm6G1f67mU81/tt4
93DBFXwpIRJvYlZt4xKgbvCOAnTUDsETz8rvbJuBC+DGZWPVKFx8AMPPtPVGfiyw
qretQn4CmYKnxDqTEwFeV1k4Cnmaiat0YxgXyQhhzaPJu35TmLYgDPPRmxoORSFu
Td/kMPVacXjvu/nN66k6hphQEoQ4NpDwoO9Eru5qfnXYh1hlcf44EBKlalDMNSkr
Lk+uHO/23Pd8plCICcRNqo2LKGiwjXQgSMVs8+9D+J8X0XIuv4H+i4CpPjm6SKbW
YmiEKY8UxQ5EmPHso4JAGgrlncM4Ks3A+oPCmaXVZcdMBWO6q6IW8K5TQKoa7Bm1
Wb8Y1/XfvNQPgZGDnz/IjempTdD9HvMP3ftX9mvd0eCbdiqrIsMcEOB7oP9wJWYE
y7OcdL6K//FXP2EHsqXDt3eIK/0hsTgAewkyGssI54DcmsSMgFJ2MpwS8p9aV8vK
LQXrnXR+Ti8psEjOC7nZLBi3EXqg0M9a6u9idgMRExHTEdmVD86nAFZNn+rN9ymO
nUz9M4zelsWsfkJSinWQWXhRVV83Mkab9lg4OJaG18RBs4Jd2w+FPtAyBAPFf/j8
loWwYwVqwzJpn+QUPFOCEVDSq3hlUI4DQkuKEp4rivXvSve9cp/AY4FclmbZ3WUT
tcaVCWVdB+zu44AYzWu3
=1mxM
-----END PGP SIGNATURE-----

--- End Message ---
-- 
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-python-debian-maint

Reply via email to