pwclient get command error

Daniel Axtens dja at axtens.net
Fri May 19 21:39:31 AEST 2017


Hi all,

I was attempting to use pwclient to fetch the Django 1.11 series*, and
ran the following command, which errored out:

$ ./patchwork/bin/pwclient get 760803
Traceback (most recent call last):
  File "./patchwork/bin/pwclient", line 820, in <module>
    main()
  File "./patchwork/bin/pwclient", line 773, in main
    action_get(rpc, patch_id)
  File "./patchwork/bin/pwclient", line 307, in action_get
    f.write(s)
TypeError: write() argument 1 must be unicode, not str

My pwclientrc contains:

[options]
default=patchwork

[patchwork]
url= https://patchwork.ozlabs.org/xmlrpc/

This breaks with python2 but works with python3:
$ python3 ./patchwork/bin/pwclient get 760803
Saved patch to 01-19-settings-Enable-SessionAuthenticationMiddleware.patch.1


Regards,
Daniel

* Stephen, any chance of putting that on GitHub somewhere, please? Much
  obliged :)


More information about the Patchwork mailing list