Code changes from Python 2.6 to 3.x

前端 未结 3 1310
广开言路
广开言路 2021-01-26 06:45

I am trying to get pywbem working in Python 3.2 (it works fine in 2.6) but the build fails on this part of code in mof_compiler.py:

  File \"pywbem-0.7.0\\mof_co         


        
3条回答
  •  醉话见心
    2021-01-26 07:37

    Sorry for answering an old question, but I just recently wanted to get PyWBEM running under Python 3, so I forked it, made the required changes, and removed a Python 2.x dependency (M2Crypto) from it for the 3.x series. Here's the source from GitHub:

    https://github.com/deejross/python3-pywbem

    Quick note, this supports Python 2.6, 2.7, and 3.4+

提交回复
热议问题