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

Method __init__

Lib/doctest.py:499–515  ·  view source on GitHub ↗
(self, source, want, exc_msg=None, lineno=0, indent=0,
                 options=None)

Source from the content-addressed store, hash-verified

497 DocTestRunner's optionflags). By default, no options are set.
498 """
499 def __init__(self, source, want, exc_msg=None, lineno=0, indent=0,
500 options=None):
501 # Normalize inputs.
502 if not source.endswith('\n'):
503 source += '\n'
504 if want and not want.endswith('\n'):
505 want += '\n'
506 if exc_msg is not None and not exc_msg.endswith('\n'):
507 exc_msg += '\n'
508 # Store properties.
509 self.source = source
510 self.want = want
511 self.lineno = lineno
512 self.indent = indent
513 if options is None: options = {}
514 self.options = options
515 self.exc_msg = exc_msg
516
517 def __eq__(self, other):
518 if type(self) is not type(other):

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

endswithMethod · 0.45

Tested by

no test coverage detected