Skip to content

Commit

Permalink
Rename subprocess module to avoid clash with stdlib (encode#1438)
Browse files Browse the repository at this point in the history
* Rename subprocess module to avoid clash with stdlib

Same problem as with encode#1426 and logging

Signed-off-by: Matthias Binzer <[email protected]>

* Fix import ordering
  • Loading branch information
matgnt authored Apr 4, 2022
1 parent dcc5c96 commit 1a54f0d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ files =
uvicorn/server.py,
uvicorn/__init__.py,
uvicorn/__main__.py,
uvicorn/subprocess.py,
uvicorn/_subprocess.py,
uvicorn/protocols/http/flow_control.py,
uvicorn/supervisors/statreload.py,
uvicorn/supervisors/multiprocess.py,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion uvicorn/supervisors/basereload.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import click

from uvicorn._subprocess import get_subprocess
from uvicorn.config import Config
from uvicorn.subprocess import get_subprocess

HANDLED_SIGNALS = (
signal.SIGINT, # Unix signal 2. Sent by Ctrl+C.
Expand Down
2 changes: 1 addition & 1 deletion uvicorn/supervisors/multiprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

import click

from uvicorn._subprocess import get_subprocess
from uvicorn.config import Config
from uvicorn.subprocess import get_subprocess

HANDLED_SIGNALS = (
signal.SIGINT, # Unix signal 2. Sent by Ctrl+C.
Expand Down

0 comments on commit 1a54f0d

Please sign in to comment.