Skip to content

Commit

Permalink
Support ASGI (#258)
Browse files Browse the repository at this point in the history
* Support ASGI

* Add parenthesis to fix syntax error

* Fix parentheses again

* Fix flake8 issues
  • Loading branch information
sanmai-NL authored Feb 10, 2020
1 parent 7cbca67 commit e8759a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pylint_django/augmentations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,8 @@ def wrap_func(*args, **kwargs):
def is_wsgi_application(node):
frame = node.frame()
return node.name == 'application' and isinstance(frame, Module) and \
(frame.name == 'wsgi' or frame.path[0].endswith('wsgi.py') or frame.file.endswith('wsgi.py'))
(frame.name == 'asgi' or frame.path[0].endswith('asgi.py') or frame.file.endswith('asgi.py') or
frame.name == 'wsgi' or frame.path[0].endswith('wsgi.py') or frame.file.endswith('wsgi.py'))


# Compat helpers
Expand Down

0 comments on commit e8759a7

Please sign in to comment.