code: def describe_filter(f):
      
      if f.__class__ is logging.Filter:  # using type() breaks in Python <= 2.6
          return 'name=%r' % f.name
      return repr(f)
docs: Return text describing the logging filter `f`.