Jonas Devlieghere
6c9f3fe908
[crashlog] Turn crash log parsing modes into a Python 'enum' (NFC)
...
Python doesn't support enums before PEP 435, but using a class with
constants is how it's commonly emulated. It can be converted into a real
Enum (in Python 3.4 and later) by extending the Enum class:
class CrashLogParseMode(Enum):
NORMAL = 0
THREAD = 1
IMAGES = 2
THREGS = 3
SYSTEM = 4
INSTRS = 5
2020-11-02 19:42:34 -08:00
..
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2020-11-02 19:42:34 -08:00
2020-07-16 21:53:45 +02:00
2019-03-21 18:27:40 +00:00
2019-03-21 18:27:40 +00:00
2016-09-06 20:57:50 +00:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2017-04-20 21:51:27 +00:00
2020-07-16 21:53:45 +02:00
2019-03-21 18:27:40 +00:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2019-11-22 15:43:39 -08:00
2019-03-21 18:27:40 +00:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2019-03-21 18:27:40 +00:00
2020-07-16 21:53:45 +02:00
2019-03-21 18:27:40 +00:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2017-10-05 00:49:49 +00:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00
2020-07-16 21:53:45 +02:00