← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1306559] Re: Fix python26 compatibility for RFCSysLogHandler

 

** Changed in: glance
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1306559

Title:
  Fix python26 compatibility for RFCSysLogHandler

Status in Cinder:
  Confirmed
Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released
Status in OpenStack Identity (Keystone):
  Confirmed
Status in Murano:
  Fix Released
Status in OpenStack Neutron (virtual network service):
  Confirmed

Bug description:
  Currently used pattern https://review.openstack.org/#/c/63094/15/openstack/common/log.py (lines 471-479)  will fail for Python 2.6.x.
  In order to fix the broken Python 2.6.x compatibility, old style explicit superclass method calls should be used instead.

  Here is an example of how to check this for Python v2.7 and v2.6: 
  import logging.handlers
  print type(logging.handlers.SysLogHandler)
  print type(logging.Handler)

  Results would be:
  Python 2.7: <type 'type'>, so super() may be used for RFCSysLogHandler(logging.handlers.SysLogHandler)
  Python 2.6:<type 'classobj'>, so super() may *NOT* be used for RFCSysLogHandler(logging.handlers.SysLogHandler)

To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1306559/+subscriptions


References