stevedore not works with logging-0.4.9.6

Bug #1550151 reported by xutian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
stevedore
Won't Fix
Undecided
Unassigned

Bug Description

logging has no attribute 'NullHandler', add below code to make a workaround in python2.6

file: /stevedore/__init__.py

try:
    from logging import NullHandler
except ImportError:
    from logging import Handler

    class NullHandler(Handler):
        def emit(self, record):
            pass

xutian (tian-xux)
Changed in python-stevedore:
status: New → Incomplete
status: Incomplete → New
description: updated
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

Unfortunately, we no longer support Python 2.6.

Changed in python-stevedore:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.