Remove threading atexit monkey patch (#28812)
This commit is contained in:
@@ -42,9 +42,6 @@ from typing import (
|
||||
Union,
|
||||
)
|
||||
|
||||
# Fix a bug of Python threading
|
||||
setattr(threading, "_register_atexit", lambda *args, **kwargs: None)
|
||||
|
||||
import torch
|
||||
import uvloop
|
||||
import zmq
|
||||
|
||||
@@ -38,10 +38,6 @@ from typing import (
|
||||
Union,
|
||||
)
|
||||
|
||||
# Fix a bug of Python threading
|
||||
setattr(threading, "_register_atexit", lambda *args, **kwargs: None)
|
||||
|
||||
|
||||
import numpy as np
|
||||
import requests
|
||||
import uvicorn
|
||||
|
||||
Reference in New Issue
Block a user