Skip to content

Commit

Permalink
Small comment tune
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Nov 12, 2019
1 parent 51ed965 commit f870637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/appier/asgi.py
Expand Up @@ -158,7 +158,7 @@ async def asgi_http(self, scope, receive, send):

# verifies if the resulting value is an awaitable and if
# that's the case waits for it's "real" result value (async)
if inspect.isawaitable(result): result = await result
if inspect.isawaitable(result): result = await result #@UndefinedVariable

# waits for the start (code and headers) send operation to be
# completed (async) so that we can proceed with body sending
Expand Down
2 changes: 1 addition & 1 deletion src/appier/base.py
Expand Up @@ -1480,7 +1480,7 @@ def application_l(self, environ, start_response, ensure_gen = True):
else: first = None

# verifies if the result is an awaitable like object this, will make
# some difference on the way the result is handled
# some difference on the way the result is handled internally
is_awaitable = hasattr(inspect, "isawaitable") and inspect.isawaitable(result)

# tries to determine if the first element of the generator (if existent)
Expand Down

0 comments on commit f870637

Please sign in to comment.