mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
util/u_trace: Replace Flag with IntEnum to support python3.5
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5586 Fixes:cefaa73909Signed-off-by: Kostiantyn Lazukin <kostiantyn.lazukin@globallogic.com> Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13643> (cherry picked from commit78b613db23)
This commit is contained in:
parent
03ee3a9dd0
commit
4fd4c41c9e
2 changed files with 5 additions and 5 deletions
|
|
@ -1111,7 +1111,7 @@
|
|||
"description": "util/u_trace: Replace Flag with IntEnum to support python3.5",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "cefaa73909718e570b36c5f8463e4b534e96201a"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
from mako.template import Template
|
||||
from collections import namedtuple
|
||||
from enum import Flag, auto
|
||||
from enum import IntEnum
|
||||
import os
|
||||
|
||||
TRACEPOINTS = {}
|
||||
|
|
@ -101,9 +101,9 @@ class TracepointArg(object):
|
|||
|
||||
HEADERS = []
|
||||
|
||||
class HeaderScope(Flag):
|
||||
HEADER = auto()
|
||||
SOURCE = auto()
|
||||
class HeaderScope(IntEnum):
|
||||
HEADER = (1 << 0)
|
||||
SOURCE = (1 << 1)
|
||||
|
||||
class Header(object):
|
||||
"""Class that represents a header file dependency of generated tracepoints
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue