Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
urllib2: Use addbase to model readable IO
<https://docs.python.org/2/library/urllib2.html#urllib2.urlopen> > urllib2.urlopen(url[,data[,timeout[,cafile[,capath[,cadefault[,context]]]]]) ... > This function returns a file-like object with three additional > methods: > - geturl() > - info() > - getcode() ... > Note that None may be returned if no handler handles the request. First suggested by srittau at <#2688 (review)> but then changed to just use `class addbase` inspired by commit 1442cc0 from Michael Brandt.
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters