Permalink
Browse files

Fix readme and I have no idea why HTTPClient subclassed Protocol...

  • Loading branch information...
1 parent 7d9ab4b commit cd6c387414edca831d8a5bc0e0c3c3f463c5694a @dreid dreid committed Nov 29, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −1 README.md
  2. +1 −3 treq/client.py
View
@@ -13,7 +13,7 @@ Twisted.
>>> from treq import get
>>> def done(response):
- ... print response.status_code
+ ... print response.code
... reactor.stop()
>>> get("http://www.github.com").addCallback(done)
View
@@ -1,7 +1,5 @@
from StringIO import StringIO
-from twisted.internet.protocol import Protocol
-
from twisted.web.http_headers import Headers
from twisted.web.iweb import IBodyProducer
from twisted.web.client import FileBodyProducer
@@ -25,7 +23,7 @@ def _from_file(orig_file):
registerAdapter(_from_file, StringIO, IBodyProducer)
-class HTTPClient(Protocol):
+class HTTPClient(object):
def __init__(self, agent):
self._agent = agent

0 comments on commit cd6c387

Please sign in to comment.