import async if it's available
authorKenneth Reitz <me@kennethreitz.com>
Sat, 12 Nov 2011 21:08:17 +0000 (13:08 -0800)
committerKenneth Reitz <me@kennethreitz.com>
Sat, 12 Nov 2011 21:08:17 +0000 (13:08 -0800)
requests/__init__.py

index e3a9d2a..b000557 100644 (file)
@@ -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