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

Method _open

Lib/logging/__init__.py:1245–1252  ·  view source on GitHub ↗

Open the current base file with the (original) mode and encoding. Return the resulting stream.

(self)

Source from the content-addressed store, hash-verified

1243 StreamHandler.close(self)
1244
1245 def _open(self):
1246 """
1247 Open the current base file with the (original) mode and encoding.
1248 Return the resulting stream.
1249 """
1250 open_func = self._builtin_open
1251 return open_func(self.baseFilename, self.mode,
1252 encoding=self.encoding, errors=self.errors)
1253
1254 def emit(self, record):
1255 """

Callers 6

__init__Method · 0.95
emitMethod · 0.95
doRolloverMethod · 0.45
shouldRolloverMethod · 0.45
doRolloverMethod · 0.45
reopenIfNeededMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected