[PATCH 3/3] pwclient: basic python3 support

Mike Frysinger vapier at gentoo.org
Sat Oct 17 10:14:47 AEDT 2015


On 16 Oct 2015 22:13, Finucane, Stephen wrote:
> > From: Mike Frysinger <vapier at chromium.org>
> > 
> > This fixes a few random issues to make the script work at least somewhat
> > under python 3:
> > - set the default encoding to utf-8
> > - handle xmlrpclib/xmlrpc.client module renames
> > - handle ConfigParser/configparser module renames
> > - add a unicode() stub for python 3
> > - fix old style class definition w/Filter
> > - use list comprehension instead of map()
> > - drop the unused version= keyword w/argparse
> > 
> > The code still runs under python 2 the same as before, and now works for
> > the most part under python 3 -- the handling of encoded content still needs
> > some work, but that'll require more surgery, and is best left to another
> > commit after this.
> 
> You're right - it needs a little more work but it's most of the way there. Do you plan to do this? I was looking at making use of Django's provided 'six' library to solve this issue for the server - we could use it here also. Regardless, for this patch

django ?  you mean this one right:
	https://pypi.python.org/pypi/six
i don't think that's related to django ..

i didn't have any plans to hack on pwclient at this point.
i don't use it that frequently ;).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/patchwork/attachments/20151016/738ce4db/attachment.sig>


More information about the Patchwork mailing list