Home
last modified time | relevance | path

Searched refs:old_text (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Lib/lib2to3/
Drefactor.py289 def print_output(self, old_text, new_text, filename, equal): argument
507 def processed_file(self, new_text, filename, old_text=None, write=False, argument
513 if old_text is None:
514 old_text = self._read_python_source(filename)[0]
515 if old_text is None:
517 equal = old_text == new_text
518 self.print_output(old_text, new_text, filename, equal)
524 self.write_file(new_text, filename, old_text, encoding)
528 def write_file(self, new_text, filename, old_text, encoding=None): argument
Dmain.py69 def write_file(self, new_text, filename, old_text, encoding): argument
101 write(new_text, filename, old_text, encoding)
/external/python/cpython3/Lib/lib2to3/
Drefactor.py270 def print_output(self, old_text, new_text, filename, equal): argument
488 def processed_file(self, new_text, filename, old_text=None, write=False, argument
494 if old_text is None:
495 old_text = self._read_python_source(filename)[0]
496 if old_text is None:
498 equal = old_text == new_text
499 self.print_output(old_text, new_text, filename, equal)
505 self.write_file(new_text, filename, old_text, encoding)
509 def write_file(self, new_text, filename, old_text, encoding=None): argument
Dmain.py69 def write_file(self, new_text, filename, old_text, encoding): argument
101 write(new_text, filename, old_text, encoding)
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_refactor.py170 def print_output(self, old_text, new_text, filename, equal): argument
171 results.extend([old_text, new_text, filename, equal])
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_refactor.py164 def print_output(self, old_text, new_text, filename, equal): argument
165 results.extend([old_text, new_text, filename, equal])