mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Slight refactor
This commit is contained in:
+1
-1
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user