]> git.ipfire.org Git - thirdparty/patchwork.git/commit
pwclient: basic python3 support
authorMike Frysinger <vapier@chromium.org>
Fri, 16 Oct 2015 21:15:31 +0000 (17:15 -0400)
committerStephen Finucane <stephen.finucane@intel.com>
Fri, 16 Oct 2015 22:21:13 +0000 (23:21 +0100)
commit0c8fb45ae28e837200cf75caf2aff0ec7b19e292
tree34f088aa56ef07b0e7c631969defd86f75991a32
parentf9c7cceb3ae5745d6a9d65f8a1733e03c90ca782
pwclient: basic python3 support

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.

Signed-off-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Stephen Finucane <stephen.finucane@hotmail.com>
patchwork/bin/pwclient