disqus/python-phabricator — pull request #8 by lifeisstillgood (2013-12-20 15:06:11+00:00)
Title: Handle new enum type change in interfaces.json

When using the API call `repository.create` the required `vcs` argument is no
longer an but a . This meant the mapping used by
`parse_interfaces` (enum: int) would throw the following error::

ValueError: Wrong argument type: vcs is not a

This has been updated in the mapping of datatypes, and a small
doctest added.

Also:

I have made the text of the error slightly clearer (in my view), as I was
initially confused as to whether I was provding an int or should be an int.

I have altered the module docstring to use >> not >>> to stop upsetting
doctest.

I have put too many changes into one commit :-)

Please note

At this stage all I have done is to enable the enum type to work,
by treating it as a string. Further work will be needed to catch enum
errors in the client, but this is not vital as the server will return
a ERR-UNKNOWN-REPOSITORY-VCS.