Commit 0d7b2ae 1 parent da1c646 commit 0d7b2ae Copy full SHA for 0d7b2ae
File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1033,6 +1033,7 @@ def serve(
1033
1033
1034
1034
socks = []
1035
1035
sync_manager = Manager ()
1036
+ worker_state : Mapping [str , Any ] = {"state" : "NONE" }
1036
1037
setup_ext (primary )
1037
1038
exit_code = 0
1038
1039
try :
@@ -1056,7 +1057,7 @@ def serve(
1056
1057
]
1057
1058
primary_server_info .settings ["run_multiple" ] = True
1058
1059
monitor_sub , monitor_pub = Pipe (True )
1059
- worker_state : Mapping [ str , Any ] = sync_manager .dict ()
1060
+ worker_state = sync_manager .dict ()
1060
1061
kwargs : Dict [str , Any ] = {
1061
1062
** primary_server_info .settings ,
1062
1063
"monitor_publisher" : monitor_pub ,
Original file line number Diff line number Diff line change 1
1
"""
2
2
Sanic
3
3
"""
4
+
4
5
import codecs
5
6
import os
6
7
import re
@@ -59,7 +60,9 @@ def str_to_bool(val: str) -> bool:
59
60
60
61
with open_local (["sanic" , "__version__.py" ], encoding = "latin1" ) as fp :
61
62
try :
62
- version = re .findall (r"^__version__ = \"([^']+)\"\r?$" , fp .read (), re .M )[0 ]
63
+ version = re .findall (
64
+ r"^__version__ = \"([^']+)\"\r?$" , fp .read (), re .M
65
+ )[0 ]
63
66
except IndexError :
64
67
raise RuntimeError ("Unable to determine version." )
65
68
@@ -94,7 +97,9 @@ def str_to_bool(val: str) -> bool:
94
97
"entry_points" : {"console_scripts" : ["sanic = sanic.__main__:main" ]},
95
98
}
96
99
97
- env_dependency = '; sys_platform != "win32" ' 'and implementation_name == "cpython"'
100
+ env_dependency = (
101
+ '; sys_platform != "win32" ' 'and implementation_name == "cpython"'
102
+ )
98
103
ujson = "ujson>=1.35" + env_dependency
99
104
uvloop = "uvloop>=0.15.0" + env_dependency
100
105
types_ujson = "types-ujson" + env_dependency
You can’t perform that action at this time.
0 commit comments