summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-02-03 05:08:22 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-02-03 05:08:22 (GMT)
commit1797b7dbbcc6d9db1ad51ca7e771f5a7e37299f5 (patch)
treee4473c11e85a363426b35829187cbd93c84e6e7d
parent9db495b5068ba9a73d63f981f0597f83d42a1212 (diff)
downloadcpython-1797b7dbbcc6d9db1ad51ca7e771f5a7e37299f5.zip
cpython-1797b7dbbcc6d9db1ad51ca7e771f5a7e37299f5.tar.gz
cpython-1797b7dbbcc6d9db1ad51ca7e771f5a7e37299f5.tar.bz2
Backport importlib to at least Python 2.5 by getting rid of use of str.format.
-rw-r--r--Lib/importlib/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py
index 89398de..65f0a83 100644
--- a/Lib/importlib/__init__.py
+++ b/Lib/importlib/__init__.py
@@ -12,7 +12,7 @@ def _resolve_name(name, package, level):
raise ValueError("__package__ not set to a string")
base = package.rsplit('.', level)[0]
if name:
- return "{0}.{1}".format(base, name)
+ return "%s.%s" % (base, name)
else:
return base