Skip to content

Commit

Permalink
Merge pull request #10 from markashleybell/patch-1
Browse files Browse the repository at this point in the history
Add missing colons in subclassing example code
  • Loading branch information
sect2k committed Apr 24, 2015
2 parents 44bae3d + 05402b2 commit eac8860
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rst
Expand Up @@ -376,7 +376,7 @@ For example, if you don't wish to use ``JSONObject`` you have to override **get_
from birdy.twitter import UserClient
class MyClient(UserClient)
class MyClient(UserClient):
@staticmethod
def get_json_object_hook(data):
return data
Expand All @@ -388,7 +388,7 @@ Or maybe, if you want global error handling for common errors, just override **h

.. code-block:: python
class MyClient(UserClient)
class MyClient(UserClient):
def handle_response(self, method, response):
try:
response = super(MyClient, self).handle_response(method, response)
Expand All @@ -402,7 +402,7 @@ Another use of subclassing is configuration of ``requests.Session`` instance (`d

.. code-block:: python
class MyClient(UserClient)
class MyClient(UserClient):
def configure_oauth_session(self, session):
session = super(MyClient, self).configure_oauth_session(session)
session.proxies = {'http': 'foo.bar:3128'}
Expand Down Expand Up @@ -435,4 +435,4 @@ Also thanks to `Twython <https://github.com/ryanmcgrath/twython>`_ for inspirati
Question, comments, ...
-----------------------

If you need to contact me, you can follow me on Twitter (`@sect2k <https://twitter.com/sect2k/>`_) or drop me an email at `mitja@inueni.com <mailto:mitja@inueni.com>`_.
If you need to contact me, you can follow me on Twitter (`@sect2k <https://twitter.com/sect2k/>`_) or drop me an email at `mitja@inueni.com <mailto:mitja@inueni.com>`_.

0 comments on commit eac8860

Please sign in to comment.