Slight refactor
authorJohannes <jgorset@gmail.com>
Fri, 20 May 2011 20:50:50 +0000 (22:50 +0200)
committerJohannes <jgorset@gmail.com>
Fri, 20 May 2011 20:50:50 +0000 (22:50 +0200)
requests/core.py
requests/settings.py

index 3d6fd64..073d231 100644 (file)
@@ -22,4 +22,4 @@ __copyright__ = 'Copyright 2011 Kenneth Reitz'
 from models import HTTPError, auth_manager
 from api import *
 from exceptions import *
-from settings import settings
\ No newline at end of file
+from settings import Settings as settings
\ No newline at end of file
index 00e27d6..1dc9007 100644 (file)
@@ -8,6 +8,9 @@ This module provides the Requests settings feature set.
 
 """
 
+# Time (in seconds) to allow the request to connect to
+# the remote host before timing it out.
+timeout = None
 
 class Settings(object):
 
@@ -33,7 +36,3 @@ class Settings(object):
     def _restore_settings(self):
         for setting, value in self.cache.items():
             globals()[setting] = value
-
-
-settings = Settings
-timeout = None
\ No newline at end of file