File fedora35-python310-vers-workaround.patch of Package openvpn3-linux

diff --git a/src/python/openvpn3/gen-python-constants.cpp b/src/python/openvpn3/gen-python-constants.cpp
index 7853460..3fd1fd9 100644
--- a/src/python/openvpn3/gen-python-constants.cpp
+++ b/src/python/openvpn3/gen-python-constants.cpp
@@ -94,26 +94,7 @@ int main(int argc, char **argv)
          << "# constants are modified." << std::endl
          << "#" << std::endl << std::endl;
 
-    // The IntFlag extension in enum arrived in Python 3.6,
-    // older Python releases need to pick this from the
-    // aenum module available via pip3
-    double pyver = ::atof(PYTHON_VERSION);
-    if (pyver > 3.5)
-    {
-        std::cout << "from enum import Enum, IntFlag" << std::endl << std::endl;
-    }
-    else
-    {
-        std::cout << "# Python version during build time was older than 3.6; "
-                  << "using enum workaround" << std::endl;
-        std::cout << "try:" << std::endl
-                  << "    from aenum import Enum, IntFlag" << std::endl
-                  << "except ImportError:" << std::endl
-                  << "    import sys" << std::endl
-                  << "    print('** ERROR **  The openvpn3 module requires the "
-                  << "aenum module on this platform.  Install via pip3.')" << std::endl
-                  << "    sys.exit(8)" << std::endl << std::endl;
-    }
+    std::cout << "from enum import Enum, IntFlag" << std::endl << std::endl;
 
     std::cout << "VERSION = '" << PACKAGE_GUIVERSION << "'"
               << std::endl << std::endl;
openSUSE Build Service is sponsored by