[py3porters-devel] Porting reportbug to Python 3

Paul Tagliamonte paultag at debian.org
Mon Jun 1 13:39:14 UTC 2015


On Mon, Jun 01, 2015 at 10:37:46AM +0200, Thomas Goirand wrote:
> Sandro, Chris,
> 
> As you may know, there's a current ongoing effort to port everything to
> Python 3 in Debian. We've started to fix software which we use
> internally in Debian. So I had a look into reportbug.

Yay! Thank you zigo! That's really amazing!

> So far, I've fixed numerous issues, like some print statements, some
> Except a, b: and so on, plus numerous import problems. But now I'm a bit
> stuck with the import of sgmllib, which is gone in Python 3 (it's
> replaced by another parser). The thing is, reading the code, it's
> written that this part of reportbug is deprecated, to be removed.

I seem to recall that lxml can handle SGML, but don't quote me on that.
Might be worth looking at that if the code needs to continue to exist
(but yeah, if it's going to removed, perhaps not)

> Would you know if it's ok to actually remove that part of the code in
> debbugs.py? I'm talking specifically about the BTSParser class. If it is
> possible to actually remove it, could you please do the work right now,
> so that I can continue my porting effort?

You could always add that to the patch series you're hacking on -- if
you want, we can host a fork repo under our git.d.o to keep patches
working on.

> FYI, I have attached my current patch. It's untested, and will likely
> require a lot more work to have something that can be uploaded. Though
> all of the print and Except/Raise fixes could be apply safely as-is.
> 
> Your comments are welcome, and as well, anyone from the py3porters team
> is more than welcome to review my patch.

Yay! I'll try to take a look at it later, but thank you *so* much zigo!
This is really really thrilling stuff!

Cheers,
  Paul

-- 
 .''`.  Paul Tagliamonte <paultag at debian.org>  |   Proud Debian Developer
: :'  : 4096R / 8F04 9AD8 2C92 066C 7352  D28A 7B58 5B30 807C 2A87
`. `'`  http://people.debian.org/~paultag
 `-     http://people.debian.org/~paultag/conduct-statement.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/py3porters-devel/attachments/20150601/506aa464/attachment.sig>


More information about the py3porters-devel mailing list