mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
scripts/glibcelf.py: Mark as UNSUPPORTED on Python 3.5 and earlier
enum.IntFlag and enum.EnumMeta._missing_ support are not part of earlier Python versions.
This commit is contained in:
parent
c966099cdc
commit
b571f3adff
@ -28,6 +28,12 @@ import collections
|
||||
import enum
|
||||
import struct
|
||||
|
||||
if not hasattr(enum, 'IntFlag'):
|
||||
import sys
|
||||
sys.stdout.write(
|
||||
'warning: glibcelf.py needs Python 3.6 for enum support\n')
|
||||
sys.exit(77)
|
||||
|
||||
class _OpenIntEnum(enum.IntEnum):
|
||||
"""Integer enumeration that supports arbitrary int values."""
|
||||
@classmethod
|
||||
|
Loading…
Reference in New Issue
Block a user