Skip to content

Documentation refers to asyncio.run_until_complete #188

@bac

Description

@bac

Please read the bug submission guidelines before submitting a bug.

Not following guidelines may result in your bug being ignored and/or closed.

Description of Bug
docs/client.rst has the following example code:

  if __name__ == '__main__':
      import asyncio
      asyncio.run_until_complete(main())

Code to Reproduce
N/A as it is a documentation bug.

Expected Behavior
The correct code example should be:

if __name__ == "__main__":
    import asyncio
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

Actual Behavior
N/A

Error/Exception Log, If Applicable
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions