Your message dated Wed, 11 May 2011 21:48:54 +0000
with message-id <[email protected]>
and subject line Bug#599369: fixed in pycountry 0.12.1+ds1-2
has caused the Debian Bug report #599369,
regarding python-pycountry: warning when importing
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.)


-- 
599369: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599369
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-pycountry
Version: 0.12.1+ds1-1
Severity: minor
Tags: upstream patch

When importing, the following warning is produced:

    No handlers could be found for logger "pycountry.db"

Attached is a patch which fixes this according to
http://docs.python.org/library/logging.html#configuring-logging-for-a-library



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-pycountry depends on:
ii  iso-codes                     3.21-1     ISO language, territory, currency,
ii  python                        2.6.6-3    interactive high-level object-orie
ii  python-support                1.0.10     automated rebuilding support for P

python-pycountry recommends no packages.

python-pycountry suggests no packages.

-- no debconf information
diff -Naur pycountry-0.12.1+ds1.old/src/pycountry/db.py pycountry-0.12.1+ds1.new/src/pycountry/db.py
--- pycountry-0.12.1+ds1.old/src/pycountry/db.py	2010-04-21 07:44:11.000000000 +0200
+++ pycountry-0.12.1+ds1.new/src/pycountry/db.py	2010-10-07 00:05:09.784425001 +0200
@@ -7,7 +7,17 @@
 import logging
 import lxml.etree
 
+# NullHandler is only defined for python >= 2.7
+if 'NullHandler' not in dir(logging):
+    class NullHandler(logging.Handler):
+        def emit(self, record):
+            pass
+    logging.NullHandler = NullHandler
+
 logger = logging.getLogger('pycountry.db')
+# Prevent warning, see
+# http://docs.python.org/library/logging.html#configuring-logging-for-a-library
+logger.addHandler(logging.NullHandler())
 
 
 class Data(object):

Attachment: pgpcXocT8iPqZ.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: pycountry
Source-Version: 0.12.1+ds1-2

We believe that the bug you reported is fixed in the latest version of
pycountry, which is due to be installed in the Debian FTP archive:

pycountry_0.12.1+ds1-2.debian.tar.gz
  to main/p/pycountry/pycountry_0.12.1+ds1-2.debian.tar.gz
pycountry_0.12.1+ds1-2.dsc
  to main/p/pycountry/pycountry_0.12.1+ds1-2.dsc
python-pycountry_0.12.1+ds1-2_all.deb
  to main/p/pycountry/python-pycountry_0.12.1+ds1-2_all.deb



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.
David Paleino <[email protected]> (supplier of updated pycountry 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: SHA1

Format: 1.8
Date: Wed, 11 May 2011 23:31:44 +0200
Source: pycountry
Binary: python-pycountry
Architecture: source all
Version: 0.12.1+ds1-2
Distribution: unstable
Urgency: low
Maintainer: David Paleino <[email protected]>
Changed-By: David Paleino <[email protected]>
Description: 
 python-pycountry - ISO databases accessible from Python
Closes: 599369 626395
Changes: 
 pycountry (0.12.1+ds1-2) unstable; urgency=low
 .
   * Bump Standards-Version to 3.9.2, no changes needed
   * Added dependency on python-lxml (Closes: #626395)
   * Prevent logger warning when importing, thanks to Johannes Weißl
     (Closes: #599369)
Checksums-Sha1: 
 c76d43af816581efeeb81429a8458c06ba739047 1268 pycountry_0.12.1+ds1-2.dsc
 23e9908c83a02a5f63e6ad8f982a99a50b05015c 4450 
pycountry_0.12.1+ds1-2.debian.tar.gz
 8c9fd52cc215e39a0e0ebd869e1e9177adc8e0cf 10010 
python-pycountry_0.12.1+ds1-2_all.deb
Checksums-Sha256: 
 12974941ddd1a2d55d49defb4553006f4e2868ab3a878bfd2ec0908324fc09f0 1268 
pycountry_0.12.1+ds1-2.dsc
 cb9bdf3846a0142a258d3e3294ab82bf8c1f21cd67a676f9bcc87d723e20fe82 4450 
pycountry_0.12.1+ds1-2.debian.tar.gz
 3b4adeba339c2c94eb8e773805351c0a4ab326a62a44b18701a446316655da45 10010 
python-pycountry_0.12.1+ds1-2_all.deb
Files: 
 b46c0ebc7999c9ed54bedbe0e39e21e3 1268 python extra pycountry_0.12.1+ds1-2.dsc
 cef187117246239e28758fd820a50197 4450 python extra 
pycountry_0.12.1+ds1-2.debian.tar.gz
 e08d9f71b63ab03935b44ba953e9e8b9 10010 python extra 
python-pycountry_0.12.1+ds1-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk3LAgMACgkQ5qqQFxOSsXQ77ACfSgnpEYbJrds8luSIy/mr4u3Z
xtgAn2ZRAaDumvGd4On6M9iQNd0B8mSk
=PS1X
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to