repo.or.cz
/
nil.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Moving again
[nil.git]
/
nil
/
http.py
blob
49c78d45b670a3d31899833ce872963e321cc863
1
import
urllib2
2
3
def
download
(
url
):
4
try
:
5
request
=
urllib2
.
Request
(
url
)
6
response
=
urllib2
.
urlopen
(
request
)
7
data
=
response
.
read
()
8
return
data
9
except
:
10
return None