Commit Graph
4 Commits
Author SHA1 Message Date
Eklavya Sharma 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 Sharma 15714bb0e8 Set a default value for output in CalledProcessError.__init__ (#329) 2016-07-02 07:40:09 -07:00
Eklavya Sharma b56ebf2b6a Make os.name str in python 3. (#296) 2016-06-14 16:30:07 -07:00
Eklavya Sharma bb5c93a217 Add __version__ to requests (#206) 2016-05-17 21:28:45 -07:00