Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing "def" in example. #5

Merged
merged 1 commit into from
Jun 13, 2017
Merged

Add missing "def" in example. #5

merged 1 commit into from
Jun 13, 2017

Conversation

hiway
Copy link
Contributor

@hiway hiway commented Jun 12, 2017

The example in README fails to run with:

    async hello_world(message, channels):
                    ^
SyntaxError: invalid syntax

FIx: Add missing "def" in the example:

async def hello_world(message, channels):
    content = b'Hello, world'
    response = {
        'status': 200,
        'headers': [
            [b'content-type', b'text/plain'],
        ],
        'content': content
    }
    await channels['reply'].send(response)

Add missing "def" in example.
@tomchristie
Copy link
Member

Thanks!

@tomchristie tomchristie merged commit 4347710 into encode:master Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants