diff options
author | Brett Cannon <brett@python.org> | 2012-10-12 14:00:34 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-10-12 14:00:34 (GMT) |
commit | 6072e0bf427008a07791b21e7cedb638fd6dbffe (patch) | |
tree | eb99424bdec666448c32e4322c2b2b5d2cdcb9ab /Lib/importlib | |
parent | 5c3283e43a13885948af2acd582a1cb801d67560 (diff) | |
download | cpython-6072e0bf427008a07791b21e7cedb638fd6dbffe.zip cpython-6072e0bf427008a07791b21e7cedb638fd6dbffe.tar.gz cpython-6072e0bf427008a07791b21e7cedb638fd6dbffe.tar.bz2 |
Remove uses of % with str.format.
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index e26cd26..e088bab 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -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 ############################################################### |