Skip to content

Commit

Permalink
Fix readme and I have no idea why HTTPClient subclassed Protocol...
Browse files Browse the repository at this point in the history
  • Loading branch information
dreid committed Nov 29, 2012
1 parent 7d9ab4b commit cd6c387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions treq/client.py
@@ -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
Expand All @@ -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

Expand Down

0 comments on commit cd6c387

Please sign in to comment.