Remove uses of % with str.format.

This commit is contained in:
Brett Cannon 2012-10-12 10:00:34 -04:00
parent 5c3283e43a
commit 6072e0bf42
2 changed files with 3774 additions and 3772 deletions

View File

@ -237,7 +237,7 @@ class _ModuleLock:
self.wakeup.release()
def __repr__(self):
return "_ModuleLock(%r) at %d" % (self.name, id(self))
return "_ModuleLock({!r}) at {}".format(self.name, id(self))
class _DummyModuleLock:
@ -258,7 +258,7 @@ class _DummyModuleLock:
self.count -= 1
def __repr__(self):
return "_DummyModuleLock(%r) at %d" % (self.name, id(self))
return "_DummyModuleLock({!r}) at {}".format(self.name, id(self))
# The following two functions are for consumption by Python/import.c.
@ -1434,7 +1434,7 @@ class FileFinder:
return path_hook_for_FileFinder
def __repr__(self):
return "FileFinder(%r)" % (self.path,)
return "FileFinder({!r})".format(self.path)
# Import itself ###############################################################

File diff suppressed because it is too large Load Diff