Slight refactor

This commit is contained in:
Johannes
2011-05-20 22:50:50 +02:00
parent 2f60748c73
commit 7d0374df2f
2 changed files with 4 additions and 5 deletions
+1 -1
View 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
from settings import Settings as settings
+3 -4
View 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