Privatize APIs by renaming or removing them from __all__ (#6021)

This commit is contained in:
Jakub Kuczys
2023-04-17 23:44:33 +02:00
committed by GitHub
parent eafbb06756
commit f051eae92d
126 changed files with 508 additions and 157 deletions

View File

@@ -0,0 +1,11 @@
import functools
import logging
import os
if os.getenv("RED_INSPECT_DRIVER_QUERIES"):
LOGGING_INVISIBLE = logging.DEBUG
else:
LOGGING_INVISIBLE = 0
log = logging.getLogger("red.driver")
log.invisible = functools.partial(log.log, LOGGING_INVISIBLE)