mirror of
https://github.com/emmett-framework/granian.git
synced 2025-07-07 19:35:33 +00:00
Minor clean
This commit is contained in:
parent
1dfd2379c2
commit
a8cd23c89e
2 changed files with 4 additions and 5 deletions
2
Makefile
2
Makefile
|
@ -5,7 +5,7 @@ pysources = granian tests
|
||||||
build-dev:
|
build-dev:
|
||||||
@rm -f granian/*.so
|
@rm -f granian/*.so
|
||||||
uv sync --group all
|
uv sync --group all
|
||||||
maturin develop
|
maturin develop --uv
|
||||||
|
|
||||||
.PHONY: format
|
.PHONY: format
|
||||||
format:
|
format:
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
from .._granian import BUILD_GIL
|
from .._granian import BUILD_GIL
|
||||||
|
from .mp import MPServer as MPServer
|
||||||
|
from .mt import MTServer as MTServer
|
||||||
|
|
||||||
|
|
||||||
if BUILD_GIL:
|
Server = MPServer if BUILD_GIL else MTServer
|
||||||
from .mp import MPServer as Server
|
|
||||||
else:
|
|
||||||
from .mt import MTServer as Server # noqa: F401
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue