substitute the result for klass. if klass is a subclass of logging.handlers.MemoryHandler base class and string 'target' is contained in config,
if issubclass ( klass , logging . handlers . MemoryHandler ) and 'target' in config :