Fix most trivially-findable print statements.

There's one major and one minor category still unfixed:
doctests are the major category (and I hope to be able to augment the
refactoring tool to refactor bona fide doctests soon);
other code generating print statements in strings is the minor category.

(Oh, and I don't know if the compiler package works.)
This commit is contained in:
Guido van Rossum 2007-02-09 05:37:30 +00:00
parent 452bf519a7
commit be19ed77dd
331 changed files with 2567 additions and 2648 deletions

View file

@ -192,39 +192,39 @@ class dircmp:
def report(self): # Print a report on the differences between a and b
# Output format is purposely lousy
print 'diff', self.left, self.right
print('diff', self.left, self.right)
if self.left_only:
self.left_only.sort()
print 'Only in', self.left, ':', self.left_only
print('Only in', self.left, ':', self.left_only)
if self.right_only:
self.right_only.sort()
print 'Only in', self.right, ':', self.right_only
print('Only in', self.right, ':', self.right_only)
if self.same_files:
self.same_files.sort()
print 'Identical files :', self.same_files
print('Identical files :', self.same_files)
if self.diff_files:
self.diff_files.sort()
print 'Differing files :', self.diff_files
print('Differing files :', self.diff_files)
if self.funny_files:
self.funny_files.sort()
print 'Trouble with common files :', self.funny_files
print('Trouble with common files :', self.funny_files)
if self.common_dirs:
self.common_dirs.sort()
print 'Common subdirectories :', self.common_dirs
print('Common subdirectories :', self.common_dirs)
if self.common_funny:
self.common_funny.sort()
print 'Common funny cases :', self.common_funny
print('Common funny cases :', self.common_funny)
def report_partial_closure(self): # Print reports on self and on subdirs
self.report()
for sd in self.subdirs.itervalues():
print
print()
sd.report()
def report_full_closure(self): # Report on self and subdirs recursively
self.report()
for sd in self.subdirs.itervalues():
print
print()
sd.report_full_closure()
methodmap = dict(subdirs=phase4,