| commit | e7f334583541e1de98614e76a65b7d04e7be4979 | [log] [tgz] |
|---|---|---|
| author | Ayke <aykevanlaethem@gmail.com> | Wed May 16 19:18:16 2018 +0200 |
| committer | Alex Gaynor <alex.gaynor@gmail.com> | Wed May 16 13:18:16 2018 -0400 |
| tree | ba6264884b0c45bbfc5dcbb5efba26229b9a9bfc | |
| parent | 02261ad7a51f8cad31c548a67f8406a1ef5ff052 [diff] |
Make sure a NotImplementedError is always raised on Connection.makefile() (#744)
* Make sure a NotImplementedError is always raised on Connection.makefile
With this patch, code which calls (for example) conn.makefile('rb') will
get a NotImplementedError instead of a confusing TypeError:
TypeError: makefile() takes 1 positional argument but 2 were given
* ignore any args/kwargs passed