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

Method __repr__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getLevelNameFunction · 0.85
getattrFunction · 0.85
strFunction · 0.85

Tested by

no test coverage detected