Import python venv for stability
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import warnings
|
||||
|
||||
|
||||
class CurlCffiWarning(UserWarning, RuntimeWarning):
|
||||
pass
|
||||
|
||||
|
||||
def config_warnings(on: bool = False):
|
||||
if on:
|
||||
warnings.simplefilter("default", category=CurlCffiWarning)
|
||||
else:
|
||||
warnings.simplefilter("ignore", category=CurlCffiWarning)
|
||||
|
||||
|
||||
def is_pro():
|
||||
return False
|
||||
Reference in New Issue
Block a user