diff options
author | Joshua Marshall <catchjosh@gmail.com> | 2015-10-05 16:55:23 -0700 |
---|---|---|
committer | Joshua Marshall <catchjosh@gmail.com> | 2015-10-05 16:55:23 -0700 |
commit | e0fb40fb55adffefe1bc62e0b936a78e7071989f (patch) | |
tree | 07ae7076ce4d4adac72902b715e9c1bec1260d43 /jsonrpclib/history.py | |
parent | b59217c971603a30648b041c84f85159afb2ec31 (diff) | |
download | jsonrpclib-e0fb40fb55adffefe1bc62e0b936a78e7071989f.tar.gz |
Initial travis integration, cleanups for running tests.
Diffstat (limited to 'jsonrpclib/history.py')
-rw-r--r-- | jsonrpclib/history.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jsonrpclib/history.py b/jsonrpclib/history.py index d11863d..f052baa 100644 --- a/jsonrpclib/history.py +++ b/jsonrpclib/history.py @@ -2,13 +2,13 @@ class History(object): """ This holds all the response and request objects for a session. A server using this should call "clear" after - each request cycle in order to keep it from clogging + each request cycle in order to keep it from clogging memory. """ requests = [] responses = [] _instance = None - + @classmethod def instance(cls): if not cls._instance: @@ -17,7 +17,7 @@ class History(object): def add_response(self, response_obj): self.responses.append(response_obj) - + def add_request(self, request_obj): self.requests.append(request_obj) |