Message111364
The patch performs an extensive cleanup of nntplib:
- Change API methods to return strings instead of bytes. This breaks API compatibility, but given that the parameters need to be passed as strings and many of the returned values would need to be passed to other API methods, I consider the current API to be broken. I've discussed this with Brett at the EuroPython sprint, and he agrees.
- Add tests.
- Add pending deprecation warnings for xgtitle() and xpath() methods, which are not useful in modern environments.
- Use named tuples for returned values where appopriate.
- Modernize the implementation a little bit.
- Clean up the docstrings. |
|
Date |
User |
Action |
Args |
2010-07-23 16:54:18 | Dmitry.Jemerov | set | recipients:
+ Dmitry.Jemerov |
2010-07-23 16:54:17 | Dmitry.Jemerov | set | messageid: <1279904057.7.0.917806545674.issue9360@psf.upfronthosting.co.za> |
2010-07-23 16:54:15 | Dmitry.Jemerov | link | issue9360 messages |
2010-07-23 16:54:15 | Dmitry.Jemerov | create | |
|