Sebastian Lohff eb191548cf Fix fo() backdoor command for non-class objects
The backdoor command fo() uses isinstance() to check if an object is an
instance of a class. This only works with objects that have a __class__
attribute, else an AttributeError is raised by isinstance(). This is
seldomly the case, though if there is one such object fo() will cease to
work. Therefore we need to protect us against this case by checking for
a __class__ attribute before calling isinstance().

An example for an object without __class__ would be
functools._lru_list_elem.

Change-Id: Ia4c5cbdc249535d36f6e71f7b2a7359bc6fdf219
Closes-Bug: #1946072
2021-10-05 08:29:50 +00:00
2021-01-03 16:21:39 +08:00
2019-04-19 19:36:22 +00:00
2021-03-18 11:28:27 +00:00
2019-02-13 17:08:38 +08:00
2020-02-10 18:33:49 +01:00
2020-09-08 14:26:37 +02:00
2021-02-19 14:47:37 +08:00

Team and repository tags

image

oslo.service -- Library for running OpenStack services

Latest Version

Downloads

oslo.service provides a framework for defining new long-running services using the patterns established by other OpenStack applications. It also includes utilities long-running applications might need for working with SSL or WSGI, performing periodic operations, interacting with systemd, etc.

Description
Library for running OpenStack services
Readme 5.6 MiB
Languages
Python 100%