MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / delete_statement

Method delete_statement

PyBasic/program.py:481–495  ·  view source on GitHub ↗

Deletes a statement from the program with the specified line number, if it exists :param line_number: The line number to be deleted

(self, line_number)

Source from the content-addressed store, hash-verified

479 self.__data.delete()
480
481 def delete_statement(self, line_number):
482 """Deletes a statement from the program with
483 the specified line number, if it exists
484
485 :param line_number: The line number to be deleted
486
487 """
488
489 self.__data.delData(line_number)
490
491 try:
492 del self.__program[line_number]
493
494 except KeyError:
495 raise KeyError("Line number does not exist")

Callers 1

mainFunction · 0.95

Calls 1

delDataMethod · 0.80

Tested by

no test coverage detected