Skip to content

Commit

Permalink
fixed pylint for python2; update code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
enkidulan committed Nov 7, 2014
1 parent 164a9ec commit 30d66d8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
52 changes: 26 additions & 26 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,49 +28,49 @@ There is also some extension that are availably for OnAir Hangouts only:
Also you can read `developers notes`_


.. How to use Hangout API
.. ============================================
How to use Hangout API
============================================

.. .. testsetup:: base_api
.. testsetup:: base_api

.. from hangout_api.tests.utils import credentials
.. from hangout_api.tests.utils import hangout_factory as Hangouts
.. email = credentials['name']
.. password = credentials['password']
from hangout_api.tests.utils import credentials
from hangout_api.tests.utils import hangout_factory as Hangouts
email = credentials['name']
password = credentials['password']

.. .. testcleanup:: base_api
.. testcleanup:: base_api

.. del hangout
del hangout


.. First of all you need to log in:
First of all you need to log in:

.. .. doctest:: base_api
.. doctest:: base_api

.. >>> hangout = Hangouts()
.. >>> hangout.login(email, password)
>>> hangout = Hangouts()
>>> hangout.login(email, password)

.. Now you can start new or connect to existing hangouts and invite people:
Now you can start new or connect to existing hangouts and invite people:

.. .. doctest:: base_api
.. doctest:: base_api

.. >>> hangout.start()
.. >>> hangout.invite(['maxybot@gmail.com', 'Friends'])
>>> hangout.start()
>>> hangout.invite(['maxybot@gmail.com', 'Friends'])

.. Or get (or change) call setting, like bandwidth, audio, etc:
Or get (or change) call setting, like bandwidth, audio, etc:

.. .. doctest:: base_api
.. doctest:: base_api

.. >>> hangout.microphone.get_devices()
.. [...]
.. >>> hangout.video.get_devices()
.. [...]
>>> hangout.microphone.get_devices()
[...]
>>> hangout.video.get_devices()
[...]

.. And leave the call when you done:
And leave the call when you done:

.. .. doctest:: base_api
.. doctest:: base_api

.. >>> hangout.disconnect()
>>> hangout.disconnect()


Indices and tables
Expand Down
2 changes: 1 addition & 1 deletion hangout_api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
)


class Timeouts():
class Timeouts(object):
# pylint: disable=too-few-public-methods, no-init
"""
Timeouts helper, contain set of used timeouts for easier management
Expand Down

0 comments on commit 30d66d8

Please sign in to comment.