uvicorn 0.34.1__py3-none-any.whl → 0.34.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
uvicorn/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  from uvicorn.config import Config
2
2
  from uvicorn.main import Server, main, run
3
3
 
4
- __version__ = "0.34.1"
4
+ __version__ = "0.34.2"
5
5
  __all__ = ["main", "run", "Config", "Server"]
@@ -90,6 +90,10 @@ class BaseReload:
90
90
  self.is_restarting = True
91
91
  assert self.process.pid is not None
92
92
  os.kill(self.process.pid, signal.CTRL_C_EVENT)
93
+
94
+ # This is a workaround to ensure the Ctrl+C event is processed
95
+ sys.stdout.write(" ") # This has to be a non-empty string
96
+ sys.stdout.flush()
93
97
  else: # pragma: py-win32
94
98
  self.process.terminate()
95
99
  self.process.join()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uvicorn
3
- Version: 0.34.1
3
+ Version: 0.34.2
4
4
  Summary: The lightning-fast ASGI server.
5
5
  Project-URL: Changelog, https://www.uvicorn.org/release-notes
6
6
  Project-URL: Funding, https://github.com/sponsors/encode
@@ -1,4 +1,4 @@
1
- uvicorn/__init__.py,sha256=SXztotDlDwRpwhxNAxosheuUoUmf8R6AKtYW5NiOToE,147
1
+ uvicorn/__init__.py,sha256=jcZ4XeMQu13Rqvp-TeOhLhZn26yKMbfQ9lr6heDAsO8,147
2
2
  uvicorn/__main__.py,sha256=DQizy6nKP0ywhPpnCHgmRDYIMfcqZKVEzNIWQZjqtVQ,62
3
3
  uvicorn/_subprocess.py,sha256=HbfRnsCkXyg7xCWVAWWzXQTeWlvLKfTlIF5wevFBkR4,2766
4
4
  uvicorn/_types.py,sha256=5FcPvvIfeKsJDjGhTrceDv8TmwzYI8yPF7mXsXTWOUM,7775
@@ -33,12 +33,12 @@ uvicorn/protocols/websockets/auto.py,sha256=kNP-h07ZzjA9dKRUd7MNO0J7xhRJ5xVBfit7
33
33
  uvicorn/protocols/websockets/websockets_impl.py,sha256=E0e7aX4ICmSIuytfc4d5RhWvjH37Ed8ZgXwAH2f8oog,15504
34
34
  uvicorn/protocols/websockets/wsproto_impl.py,sha256=2OB4E6OsQ1KPiETkHYi2UQDxY9sUzTr0LLZQJxlXPxo,15375
35
35
  uvicorn/supervisors/__init__.py,sha256=wT8eOEIqT1yWQgytZtv5taWMul7xoTIY0xm1m4oyPTw,507
36
- uvicorn/supervisors/basereload.py,sha256=arOe3PqQp0L5FvCYDsVg8jUev-57syWFzHhggsM18VY,3858
36
+ uvicorn/supervisors/basereload.py,sha256=MAXSQ3ckZPwqzJ8Un9yDhk3W0yyAArQtZLuOE0OInSc,4036
37
37
  uvicorn/supervisors/multiprocess.py,sha256=Opt0XvOUj1DIMXYwb4OlkJZxeh_RjweFnTmDPYItONw,7507
38
38
  uvicorn/supervisors/statreload.py,sha256=uYblmoxM3IbPbvMDzr5Abw2-WykQl8NxTTzeLfVyvnU,1566
39
39
  uvicorn/supervisors/watchfilesreload.py,sha256=41FGNMXPKrKvPr-5O8yRWg43l6OCBtapt39M-gpdk0E,3010
40
- uvicorn-0.34.1.dist-info/METADATA,sha256=O2eY1scXzGrYzwSaRblLDbHpkBnzhrLXZ1AFsm6xmlw,6549
41
- uvicorn-0.34.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
42
- uvicorn-0.34.1.dist-info/entry_points.txt,sha256=FW1w-hkc9QgwaGoovMvm0ZY73w_NcycWdGAUfDsNGxw,46
43
- uvicorn-0.34.1.dist-info/licenses/LICENSE.md,sha256=7-Gs8-YvuZwoiw7HPlp3O3Jo70Mg_nV-qZQhTktjw3E,1526
44
- uvicorn-0.34.1.dist-info/RECORD,,
40
+ uvicorn-0.34.2.dist-info/METADATA,sha256=kUM_FZJJlmpGa7hrum4L1EHIkhbs-vhpPCPRMSBD8QY,6549
41
+ uvicorn-0.34.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
42
+ uvicorn-0.34.2.dist-info/entry_points.txt,sha256=FW1w-hkc9QgwaGoovMvm0ZY73w_NcycWdGAUfDsNGxw,46
43
+ uvicorn-0.34.2.dist-info/licenses/LICENSE.md,sha256=7-Gs8-YvuZwoiw7HPlp3O3Jo70Mg_nV-qZQhTktjw3E,1526
44
+ uvicorn-0.34.2.dist-info/RECORD,,