Commit Graph
6 Commits
Author SHA1 Message Date
Eklavya SharmaandGuido van Rossum c98c2afb58 os: Add buffering to fdopen. (#337) 2016-07-04 20:12:06 -07:00
Eklavya SharmaandGuido van Rossum df1a655858 email.header: Make decode_header also accept str. (#333)
decode_header accepts a parameter of type str or Header, but the
stub for decode_header types the parameter as Header.  Change
that to Union[Header, str].
2016-07-04 18:11:49 -07:00
Eklavya SharmaandGuido van Rossum a424eeb1f8 Fix some stubs in urllib.parse (#334)
* urllib.parse: Make return type of unquote_from_bytes str.

* urllib.parse: Reject encoding when quote is passed bytes.

encoding and errors must not be supplied to quote_plus and
quote if the first parameter is a bytes, or a TypeError is raised.
So overload quote and do not put encoding and errors in the
version where bytes is the first parameter.

quote and quote_plus also allow string and safe to be of different
types.  Also allow that in the stubs.
2016-07-04 13:53:46 -07:00
Eklavya SharmaandGuido van Rossum 15714bb0e8 Set a default value for output in CalledProcessError.__init__ (#329) 2016-07-02 07:40:09 -07:00
Eklavya SharmaandGuido van Rossum b56ebf2b6a Make os.name str in python 3. (#296) 2016-06-14 16:30:07 -07:00
Eklavya SharmaandGuido van Rossum bb5c93a217 Add __version__ to requests (#206) 2016-05-17 21:28:45 -07:00