MCPcopy Index your code
hub / github.com/python/cpython / _fixupChildren

Method _fixupChildren

Lib/logging/__init__.py:1437–1448  ·  view source on GitHub ↗

Ensure that children of the placeholder ph are connected to the specified logger.

(self, ph, alogger)

Source from the content-addressed store, hash-verified

1435 alogger.parent = rv
1436
1437 def _fixupChildren(self, ph, alogger):
1438 """
1439 Ensure that children of the placeholder ph are connected to the
1440 specified logger.
1441 """
1442 name = alogger.name
1443 namelen = len(name)
1444 for c in ph.loggerMap.keys():
1445 #The if means ... if not c.parent.name.startswith(nm)
1446 if c.parent.name[:namelen] != name:
1447 alogger.parent = c.parent
1448 c.parent = alogger
1449
1450 def _clear_cache(self):
1451 """

Callers 1

getLoggerMethod · 0.95

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected