doctoring for Session
authorKenneth Reitz <me@kennethreitz.com>
Wed, 17 Aug 2011 02:20:26 +0000 (22:20 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Wed, 17 Aug 2011 02:20:26 +0000 (22:20 -0400)
requests/sessions.py

index f8a6883f20cd0e92a7a2b19124e116a9933d9965..6681e3cc7afbb264d3be6fae847a9f807a511c87 100644 (file)
@@ -13,8 +13,11 @@ import requests.api
 import cookielib
 
 class Session(object):
+    """A Requests session."""
+
     __attrs__ = ['headers', 'cookies', 'auth', 'timeout', 'proxies']
 
+
     def __init__(self, **kwargs):
 
         # Set up a CookieJar to be used by default
@@ -27,9 +30,11 @@ class Session(object):
         # Map and wrap requests.api methods
         self._map_api_methods()
 
+
     def __repr__(self):
         return '<requests-client at 0x%x>' % (id(self))
 
+
     def _map_api_methods(self):
         """Reads each available method from requests.api and decorates
         them with a wrapper, which inserts any instance-local attributes