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

@ -133,7 +133,7 @@ def TestAll(root_key):
# Test on my local machine.
TestAll(HKEY_CURRENT_USER)
print "Local registry tests worked"
print("Local registry tests worked")
try:
remote_name = sys.argv[sys.argv.index("--remote")+1]
except (IndexError, ValueError):
@ -143,14 +143,14 @@ if remote_name is not None:
try:
remote_key = ConnectRegistry(remote_name, HKEY_CURRENT_USER)
except EnvironmentError as exc:
print "Could not connect to the remote machine -", exc.strerror
print("Could not connect to the remote machine -", exc.strerror)
remote_key = None
if remote_key is not None:
TestAll(remote_key)
print "Remote registry tests worked"
print("Remote registry tests worked")
else:
print "Remote registry calls can be tested using",
print "'test_winreg.py --remote \\\\machine_name'"
print("Remote registry calls can be tested using", end=' ')
print("'test_winreg.py --remote \\\\machine_name'")
# perform minimal ConnectRegistry test which just invokes it
h = ConnectRegistry(None, HKEY_LOCAL_MACHINE)
h.Close()