MCPcopy Index your code
hub / github.com/RustPython/RustPython / _fixupChildren

Method _fixupChildren

Lib/logging/__init__.py:1434–1445  ·  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

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

Callers 1

getLoggerMethod · 0.95

Calls 2

lenFunction · 0.85
keysMethod · 0.45

Tested by

no test coverage detected