<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 05/03/18 10:27, Daniel P. BerrangĂ©
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:20180305102711.GK17368@redhat.com">BTW,
      we just hit a problem with macOS homebrew changing python to point
      to
      <pre wrap="">a py3 binary and that showed other libvirt failures. In particular the ESX
code generator is broken under py2. I wouldn't be surprised if more of our
python scripts are also broken. So I think we need a general work item to
fix py3 compat for libvirt - if someone wants to work on it for the 4.2.0
release....

</pre>
    </blockquote>
    I noticed that in there are only 7 python files which need to be
    made compatible with Py3.<br>
    <blockquote>docs/reformat-news.py<br>
      docs/apibuild.py<br>
      docs/index.py<br>
      src/hyperv/hyperv_wmi_generator.py<br>
      src/esx/esx_vi_generator.py<br>
      tests/cputestdata/cpu-reformat.py<br>
      tests/cputestdata/cpu-cpuid.py<br>
    </blockquote>
    The 2to3 tool shows some obvious fixes. (e.g. print statement,
    dict.items(), etc.)<br>
    In addition, this documentation very helpful:
    <a class="moz-txt-link-freetext" href="http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html">http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html</a><br>
    <br>
    Radostin<br>
    <br>
  </body>
</html>