Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commit4191f7d
committed
Refactor kill_after_timeout logic so mypy can check it
This changes how Git.execute defines the kill_process callback andhow it performs checks, fixing two mypy errors on Windows about howthe signal module doesn't have SIGKILL. In doing so, it alsoeliminates the need for the assertion added for safety and clarityin2f017ac (#1761), since now kill_process is only defined if it isto be used (which is also guarded by a platform check, needed bymypy).As indc95a76 before this, part of the change here is to replacesome os.named-based checks with sys.platform-based checks, which issafe because, when one is specifically checking only for thedistinction between native Windows and all other systems, one canuse either approach. (Seedc95a76 for more details on that.)1 parentdc95a76 commit4191f7d
1 file changed
+35
-32
lines changedLines changed: 35 additions & 32 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1134 | 1134 |
| |
1135 | 1135 |
| |
1136 | 1136 |
| |
1137 |
| - | |
| 1137 | + | |
1138 | 1138 |
| |
1139 | 1139 |
| |
1140 | 1140 |
| |
| |||
1179 | 1179 |
| |
1180 | 1180 |
| |
1181 | 1181 |
| |
1182 |
| - | |
1183 |
| - | |
1184 |
| - | |
1185 |
| - | |
1186 |
| - | |
1187 |
| - | |
1188 |
| - | |
1189 |
| - | |
1190 |
| - | |
1191 |
| - | |
1192 |
| - | |
1193 |
| - | |
1194 |
| - | |
1195 |
| - | |
1196 |
| - | |
1197 |
| - | |
1198 |
| - | |
1199 |
| - | |
1200 |
| - | |
1201 |
| - | |
1202 |
| - | |
1203 |
| - | |
1204 |
| - | |
1205 |
| - | |
1206 |
| - | |
1207 |
| - | |
1208 |
| - | |
1209 |
| - | |
1210 |
| - | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
1211 | 1214 |
| |
1212 | 1215 |
| |
1213 | 1216 |
| |
| |||
1218 | 1221 |
| |
1219 | 1222 |
| |
1220 | 1223 |
| |
1221 |
| - | |
| 1224 | + | |
1222 | 1225 |
| |
1223 | 1226 |
| |
1224 |
| - | |
| 1227 | + | |
1225 | 1228 |
| |
1226 | 1229 |
| |
1227 | 1230 |
| |
|
0 commit comments
Comments
(0)