projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58c77ba
)
import async if it's available
author
Kenneth Reitz
<me@kennethreitz.com>
Sat, 12 Nov 2011 21:08:17 +0000
(13:08 -0800)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sat, 12 Nov 2011 21:08:17 +0000
(13:08 -0800)
requests/__init__.py
patch
|
blob
|
history
diff --git
a/requests/__init__.py
b/requests/__init__.py
index
e3a9d2a
..
b000557
100644
(file)
--- a/
requests/__init__.py
+++ b/
requests/__init__.py
@@
-31,3
+31,8
@@
from .exceptions import (
RequestException, Timeout, URLRequired,
TooManyRedirects, HTTPError, ConnectionError
)
+
+try:
+ from . import async
+except RuntimeError:
+ pass
\ No newline at end of file