Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(474)

Unified Diff: scripts/auxiliar/makelsr.py

Issue 553420043: Switch to Python 3.x (Closed)
Patch Set: Remove coverage.py Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/auxiliar/fixcc.py ('k') | scripts/auxiliar/musicxml_generate_intervals.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/auxiliar/makelsr.py
diff --git a/scripts/auxiliar/makelsr.py b/scripts/auxiliar/makelsr.py
index 2ad0387c8a0cc88be0257af68c51cb0a10de6fe6..3f94a07203a7b8c6391fd24d925bd984a04beed5 100755
--- a/scripts/auxiliar/makelsr.py
+++ b/scripts/auxiliar/makelsr.py
@@ -301,10 +301,10 @@ def dump_file_list (file, file_list):
## not recreating all of them from the tarball don't delete
## snippets that came from LSR.
if in_dir:
- map (os.remove, glob.glob (os.path.join (lys_from_lsr, '*.ly')) +
- glob.glob (os.path.join (lys_from_lsr, '*.snippet-list')))
+ list(map (os.remove, glob.glob (os.path.join (lys_from_lsr, '*.ly')) +
+ glob.glob (os.path.join (lys_from_lsr, '*.snippet-list'))))
else:
- map (os.remove, glob.glob (os.path.join (lys_from_lsr, '*.snippet-list')))
+ list(map (os.remove, glob.glob (os.path.join (lys_from_lsr, '*.snippet-list'))))
for f in glob.glob (os.path.join (lys_from_lsr, '*.ly')):
if new_lys_marker in open (f).read ():
os.remove (f)
@@ -317,12 +317,12 @@ if in_dir:
snippets_new, not_used_list = read_source (new_lys)
snippets.update (snippets_new)
-for (name, (srcdir, file_tags)) in snippets.items ():
+for (name, (srcdir, file_tags)) in list(snippets.items ()):
copy_ly (srcdir, name, file_tags)
not_used_snippets, tag_lists = read_source (lys_from_lsr)
-for (tag, file_set) in tag_lists.items ():
+for (tag, file_set) in list(tag_lists.items ()):
dump_file_list (os.path.join (lys_from_lsr, tag + '.snippet-list'),
file_set)
if unconverted:
« no previous file with comments | « scripts/auxiliar/fixcc.py ('k') | scripts/auxiliar/musicxml_generate_intervals.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b