Show More
@@ -1,5 +1,5 b'' | |||||
1 | #!/usr/bin/env python |
|
1 | #!/usr/bin/env python | |
2 |
|
|
2 | """ Checkout gitwash repo into directory and do search replace on name """ | |
3 |
|
3 | |||
4 | import os |
|
4 | import os | |
5 | from os.path import join as pjoin |
|
5 | from os.path import join as pjoin | |
@@ -51,9 +51,9 b' def cp_files(in_path, globs, out_path):' | |||||
51 |
|
51 | |||
52 |
|
52 | |||
53 | def filename_search_replace(sr_pairs, filename, backup=False): |
|
53 | def filename_search_replace(sr_pairs, filename, backup=False): | |
54 |
|
|
54 | """ Search and replace for expressions in files | |
55 |
|
55 | |||
56 | ''' |
|
56 | """ | |
57 | in_txt = open(filename, 'rt').read(-1) |
|
57 | in_txt = open(filename, 'rt').read(-1) | |
58 | out_txt = in_txt[:] |
|
58 | out_txt = in_txt[:] | |
59 | for in_exp, out_exp in sr_pairs: |
|
59 | for in_exp, out_exp in sr_pairs: |
General Comments 0
You need to be logged in to leave comments.
Login now