MCPcopy Create free account
hub / github.com/Tencent/NeuralNLP-NeuralClassifier / __new__

Method __new__

util.py:47–50  ·  view source on GitHub ↗
(cls, *args, **kw)

Source from the content-addressed store, hash-verified

45 _instance = None
46
47 def __new__(cls, *args, **kw):
48 if not cls._instance:
49 cls._instance = super(Logger, cls).__new__(cls)
50 return cls._instance
51
52 def __init__(self, config):
53 if config.log.log_level == "debug":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected