Changeset 2588
- Timestamp:
- 02/22/10 12:08:41
- Files:
-
- trunk/sphinx/util/convert-links.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/sphinx/util/convert-links.py
r2587 r2588 31 31 ] 32 32 33 def handle_command_line(): 34 options = get_options() 35 text = open(options.filename).read() 33 def convert_file(filename): 34 text = open(filename).read() 36 35 new_text = text 37 36 for repl in replacements: … … 39 38 new_text = pattern.sub(repl, text) 40 39 41 open( options.filename, 'w').write(new_text)40 open(filename, 'w').write(new_text) 42 41 print("done") 42 43 44 def handle_command_line(): 45 options = get_options() 46 convert_file(options.filename) 43 47 44 48 if __name__ == '__main__':

