mirror of
https://github.com/django/daphne.git
synced 2024-11-21 15:36:33 +03:00
Added missing stacklevel warning parameter. (#471)
This commit is contained in:
parent
b0204165b1
commit
077dd81809
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user