:param str filename: Note: must be sent as it was received in the protocol. It may be translated in this function.
(self, py_db, seq, filename)
| 780 | py_db.post_internal_command(int_cmd, thread_id) |
| 781 | |
| 782 | def request_load_source(self, py_db, seq, filename): |
| 783 | """ |
| 784 | :param str filename: |
| 785 | Note: must be sent as it was received in the protocol. It may be translated in this |
| 786 | function. |
| 787 | """ |
| 788 | try: |
| 789 | filename = self.filename_to_server(filename) |
| 790 | assert filename.__class__ == str # i.e.: bytes on py2 and str on py3 |
| 791 | |
| 792 | with tokenize.open(filename) as stream: |
| 793 | source = stream.read() |
| 794 | cmd = py_db.cmd_factory.make_load_source_message(seq, source) |
| 795 | except: |
| 796 | cmd = py_db.cmd_factory.make_error_message(seq, get_exception_traceback_str()) |
| 797 | |
| 798 | py_db.writer.add_command(cmd) |
| 799 | |
| 800 | def get_decompiled_source_from_frame_id(self, py_db, frame_id): |
| 801 | """ |
no test coverage detected