Skip to content

Commit 1015ed4

Browse files
author
brett.cannon
committed
Backport importlib to at least Python 2.5 by getting rid of use of str.format.
git-svn-id: http://svn.python.org/projects/python/trunk@69257 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 1b4431d commit 1015ed4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/importlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def _resolve_name(name, package, level):
1212
raise ValueError("__package__ not set to a string")
1313
base = package.rsplit('.', level)[0]
1414
if name:
15-
return "{0}.{1}".format(base, name)
15+
return "%s.%s" % (base, name)
1616
else:
1717
return base
1818

0 commit comments

Comments
 (0)