Your message dated Wed, 22 Oct 2014 05:49:32 +0000 with message-id <[email protected]> and subject line Bug#764380: fixed in python-debian 0.1.25 has caused the Debian Bug report #764380, regarding python-debian: deb822.Changes() fails with io.open() for signed *.changes (regression) 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.) -- 764380: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764380 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: python-debian Version: 0.1.24 Severity: important Dear maintainers, (s.th. like) this --- files = debian.deb822.Changes(io.open(sys.argv[1], "r", encoding="UTF-8")).get("Files", []) --- results in --- Traceback (most recent call last): File "./c.py", line 8, in <module> files = debian.deb822.Changes(io.open(sys.argv[1], "r", encoding="UTF-8")).get("Files", []) File "/usr/lib/python2.7/dist-packages/debian/deb822.py", line 1243, in __init__ raw_text.write(b"\n".join(gpg_pre_lines)) TypeError: 'unicode' does not have the buffer interface --- on a signed changes file. Just using 'open()' works fine. Not sure if this is not supposed to be used this way (?), but it's definitely a regression (works just fine in wheezy) so code that uses it that way in wheezy will break in jessie. Could you please advice on this -- i.e. is it a bug, or do I need to change my code? Thx! Stephan -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.16-0.bpo.2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-debian depends on: ii python-chardet 2.2.1-2 ii python-six 1.8.0-1 pn python:any <none> Versions of packages python-debian recommends: ii python-apt 0.9.3.10 Versions of packages python-debian suggests: ii gpgv 1.4.18-4 -- no debconf information
--- End Message ---
--- Begin Message ---Source: python-debian Source-Version: 0.1.25 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. John Wright <[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: SHA512 Format: 1.8 Date: Tue, 21 Oct 2014 22:32:26 -0700 Source: python-debian Binary: python-debian python3-debian Architecture: source all Version: 0.1.25 Distribution: unstable Urgency: medium Maintainer: Debian python-debian Maintainers <[email protected]> Changed-By: John Wright <[email protected]> Description: python-debian - Python modules to work with Debian-related data formats python3-debian - Python 3 modules to work with Debian-related data formats Closes: 764380 Changes: python-debian (0.1.25) unstable; urgency=medium . * deb822: More encoding gymnastics to support parsing signed files opened in text mode (Closes: #764380). Checksums-Sha1: e3267addc3a94abedf5460ce441e788d22743364 1861 python-debian_0.1.25.dsc 335b107258122d2a595140dffc2c576240378f7b 289516 python-debian_0.1.25.tar.xz 9d75302480a126a6b322247367f5e1e7a4c64b11 71046 python-debian_0.1.25_all.deb f43d236f2523ed890bea7407866ef1b9ddab8299 50764 python3-debian_0.1.25_all.deb Checksums-Sha256: 1a2699fa637f51cd40278773b09d85cdaec714b02f231d727c8c2dcf6f988a71 1861 python-debian_0.1.25.dsc 06ad8043126ec9948bd9fa21a4050e937c63323c8161188833eaaa7caeb4fafa 289516 python-debian_0.1.25.tar.xz 9007a614f15b3e0833cd0e3e5d772567070a7262c47feb5ca1923d392c089a61 71046 python-debian_0.1.25_all.deb e6493e9bed220ef6f2871376d7b91d095bc565715304bff6a1f538ff467e3ee9 50764 python3-debian_0.1.25_all.deb Files: 3f76273c3f8a1e7ad3b5b0c662912354 71046 python optional python-debian_0.1.25_all.deb eecd5bb1b64d5a29900f1537d3019553 50764 python optional python3-debian_0.1.25_all.deb aa250b813655932c20dc3c15e137e701 1861 python optional python-debian_0.1.25.dsc 23c8bd6bf301461ca6c06b134ef0fc41 289516 python optional python-debian_0.1.25.tar.xz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJUR0LJAAoJEOdiPQlLQO87oZcH/2JlHorFfldYZ63rEMU0b8Jf Kx4HrpfGLFRJ22ipOGjYJ6fXw5FKfTqkAR6lINYlQhaJERugEFob7OjCeAgUGCKe O6AxXxnNKUy0AYpXEVsrIulz5gv+zVNaAiet2sPy+uju6+wvHLPd1MZW2WK11t9x YDDTiMjx7SuZUWBfnDJX+RHmt5F7DBAcnpV9Q06g98QRu4nWuwBJ7imV47P8VkD9 vnQ6Md6DBqIYjJSvLKP2E8b7bCMU6HJa10sSyEpgBC7VGShKrOYi1+QwRMQh9dHW u5QF05rWBEO2pwgVF0Wu5c1sPy2aYNzUXq+P4eN7ch1bcdvYW2EIXV7t2LobFPA= =Jwk9 -----END PGP SIGNATURE-----
--- End Message ---
-- http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-python-debian-maint
