[Rpm-maint] [rpm-software-management/rpm] Improved python support: enums are now enums with all additional goodies. (#1309)
Panu Matilainen
notifications at github.com
Tue Aug 4 11:11:08 UTC 2020
@pmatilai commented on this pull request.
> @@ -0,0 +1,74 @@
+from __future__ import absolute_import
+
+from . import _rpm
+
+__all__ = []
+
+_enumClass = None
+_flagEnumClass = None
+try:
+ from enum import IntEnum as _enumClass
+except ImportError:
+ try:
+ from enum import Enum as _enumClass
+ except ImportError:
We don't support Python 2 at all, you can drop all this compat foobar.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1309#pullrequestreview-460715498
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200804/43b36af2/attachment.html>
More information about the Rpm-maint
mailing list