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

Method __repr__

Lib/logging/__init__.py:1181–1188  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1179 return result
1180
1181 def __repr__(self):
1182 level = getLevelName(self.level)
1183 name = getattr(self.stream, 'name', '')
1184 # bpo-36015: name can be an int
1185 name = str(name)
1186 if name:
1187 name += ' '
1188 return '<%s %s(%s)>' % (self.__class__.__name__, name, level)
1189
1190 __class_getitem__ = classmethod(GenericAlias)
1191

Callers

nothing calls this directly

Calls 2

getLevelNameFunction · 0.85
strFunction · 0.85

Tested by

no test coverage detected