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

Unified Diff: scripts/auxiliar/find-superfluous-includes.py

Issue 573340043: Run 2to3 --write --nobackups . (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/check_translation.py ('k') | scripts/auxiliar/fixcc.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/auxiliar/find-superfluous-includes.py
diff --git a/scripts/auxiliar/find-superfluous-includes.py b/scripts/auxiliar/find-superfluous-includes.py
index de40df088a42cdbffa66c8abb61129248b568f81..82ce04e62ab30ca56feda28106141501edb2034b 100755
--- a/scripts/auxiliar/find-superfluous-includes.py
+++ b/scripts/auxiliar/find-superfluous-includes.py
@@ -31,13 +31,13 @@ def has_include (f, name):
for a in sys.argv:
parse_file (a)
-print '-*-compilation-*-'
-for (f, lst) in incs.items ():
+print('-*-compilation-*-')
+for (f, lst) in list(incs.items ()):
for (n, inc) in lst:
for (n2, inc2) in lst:
if has_include (inc2, inc):
- print "%s:%d: already have %s from %s" % (full_paths[f], n,
- inc, inc2)
+ print("%s:%d: already have %s from %s" % (full_paths[f], n,
+ inc, inc2))
break
« no previous file with comments | « scripts/auxiliar/check_translation.py ('k') | scripts/auxiliar/fixcc.py » ('j') | no next file with comments »

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