Commit Graph
6 Commits
Author SHA1 Message Date
Nathan HenrieandMatthias Kramm 9429ac070b Use Union[bytes, Text] instead of AnyStr (#1819) 2018-01-11 08:23:39 -08:00
Nathan HenrieandJelle Zijlstra 87fca814b1 addr should be Tuple[str, int], not str (#1740)
I think `addr` here should also be  `Tuple[str, int]`, the same change made to `sendto` in [this pr merged a few months ago](https://github.com/python/typeshed/commit/0e26c1f9361bd2d57b9f361c4fbd8185243afb21#diff-d21efb8da2d73c6c7c769270b387cd47).
2017-11-12 23:14:16 -08:00
Nathan HenrieandJelle Zijlstra b8a3f9359f Update pbkdf2_hmac argument names for 3.4+ (#1241)
* Update pbkdf2_hmac for Python 3.5

- Use `iterations` instead of `rounds` if running on 3.5
- Change `dklen` to `Optional`

* Use `iterations` instead of `rounds` in 3.4+
2017-05-04 21:09:07 -07:00
Nathan HenrieandJelle Zijlstra da43a231bb Add missing kwargs for create_server and create_datagram_endpoint (#1084)
* Add missing kwargs for create_server and create_datagram_endpoint

Looks like `create_server` and `create_datagram_endpoint` have supported `reuse_port`, `reuse_address`, and `sock` since 3.4.

https://docs.python.org/3.4/library/asyncio-eventloop.html
https://github.com/python/cpython/blob/ee51327a2329eb9c2bfbb6ea673cfab4299450b0/Lib/asyncio/events.py

* Fixes to create_server, create_datagram_endpoing

- Add allow sequence for `hosts` in `create_server`
- Add `allow_broadcast` to `create_datagram_endpoint`
- Reorder `sock` in `create_datagram_endpoint`

* Import Sequence

* Sockets are Optionals
2017-03-29 10:31:44 -07:00
Nathan HenrieandJelle Zijlstra fb80dc3971 Add ModuleNotFoundError for Python >= 3.6 (#1083)
https://github.com/python/cpython/blob/6f0eb93183519024cb360162bdd81b9faec97ba6/Objects/exceptions.c#L707
https://docs.python.org/3/library/exceptions.html#ModuleNotFoundError
2017-03-23 18:16:53 -07:00
Nathan HenrieandJelle Zijlstra abb7e49089 HTTPPasswordMgrWithDefaultRealm inherits from HTTPPasswordMgr (#1082)
https://github.com/python/cpython/blob/ee51327a2329eb9c2bfbb6ea673cfab4299450b0/Lib/urllib/request.py#L900
2017-03-23 10:48:22 -07:00