<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello all,<br>
    <br>
    Lately, there has been <a
      href="https://wiki.debian.org/Python/Python3Port">an ongoing
      effort</a> to port Python code in Debian to Python 3. So, I've
    decided to take a look at apt-listchanges, and modified it so that
    it supports both Python 2 and 3. The code is currently hosted at
    GitHub, since I don't have access to alioth: <a
      href="https://github.com/GLolol/apt-listchanges">https://github.com/GLolol/apt-listchanges</a><br>
    <br>
    I had to make a lot of changes for the code to work properly. For
    starters I migrated the Gtk frontend from the deprecated PyGTK to
    the newer PyGObject: this involved changing Glade signals from
    destroy-event to destroy for window closing, updating imports
    (gtk.glade->gettext for example), and at the same time
    transitioning the code to GTK 3. For some of this, GNOME's
    pygi-convert.sh and Glade were quite helpful.<br>
    <br>
    I also adjusted many imports using "try, import Y, except
    ImportError, import X as Y" clauses, which preserve compatibility
    even though many libraries have renamed in Python 3. Text strings
    had to be updated to handle the difference between bytes and str,
    etc. Finally, I changed the build system from python-support to
    dh_python3 in order to build Python 3 .debs.<br>
    <br>
    So far, I've tested all the various frontends (pager, browser,
    xterm-pager, xterm-browser, text, mail, gtk) from the command line
    on .deb files, which seemed to work fine. The only thing untested is
    the actual APT pipeline support, since I haven't gotten any NEWS
    files that would be displayed there. Anyone, please feel free to
    comment and review the changes, which can be found here: <a
href="https://github.com/GLolol/apt-listchanges/compare/5e72a2cf32c2395f027bfb1c3cf3e4e72dceef4a...debian-sid">https://github.com/GLolol/apt-listchanges/compare/5e72a2cf32c2395f027bfb1c3cf3e4e72dceef4a...debian-sid</a><br>
    (<a moz-do-not-send="false"
      href="cid:part4.06010006.07000306@hotmail.com">patch form</a>).<br>
    <br>
    Best,<br>
    James<br>
    <a
href="https://github.com/GLolol/apt-listchanges/compare/5e72a2cf32c2395f027bfb1c3cf3e4e72dceef4a...debian-sid"><br>
    </a>
  </body>
</html>