Merge branch 'main' into patch-1

This commit is contained in:
Carlton Gibson 2023-04-14 15:04:23 +02:00 committed by GitHub
commit 705ce0a421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ repos:
- id: pyupgrade - id: pyupgrade
args: [--py36-plus] args: [--py36-plus]
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 23.1.0 rev: 23.3.0
hooks: hooks:
- id: black - id: black
language_version: python3 language_version: python3

View File

@ -21,6 +21,7 @@ if current_reactor is not None:
+ "you can fix this warning by importing daphne.server early in your codebase or " + "you can fix this warning by importing daphne.server early in your codebase or "
+ "finding the package that imports Twisted and importing it later on.", + "finding the package that imports Twisted and importing it later on.",
UserWarning, UserWarning,
stacklevel=2,
) )
del sys.modules["twisted.internet.reactor"] del sys.modules["twisted.internet.reactor"]
asyncioreactor.install(twisted_loop) asyncioreactor.install(twisted_loop)