public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] scripts/glibcelf.py: Mark as UNSUPPORTED on Python 3.5 and earlier
@ 2022-04-25 7:15 Florian Weimer
0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2022-04-25 7:15 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b571f3adffdcbed23f35ea39b0ca43809dbb4f5b
commit b571f3adffdcbed23f35ea39b0ca43809dbb4f5b
Author: Florian Weimer <fweimer@redhat.com>
Date: Fri Apr 22 19:34:52 2022 +0200
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.
Diff:
---
scripts/glibcelf.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/glibcelf.py b/scripts/glibcelf.py
index 8f7d0ca184..da0d5380f3 100644
--- a/scripts/glibcelf.py
+++ b/scripts/glibcelf.py
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-25 7:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-25 7:15 [glibc] scripts/glibcelf.py: Mark as UNSUPPORTED on Python 3.5 and earlier Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).