Skip to content

Commit 06a7f83

Browse files
committed
Removed old string formatting.
1 parent 6b92015 commit 06a7f83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def main():
6464
objects.append(Adapter(car, dict(make_noise=lambda: car.make_noise(3))))
6565

6666
for obj in objects:
67-
print("A", obj.name, "goes", obj.make_noise())
67+
print("A {0} goes {1}".format(obj.name, obj.make_noise()))
6868

6969

7070
if __name__ == "__main__":

0 commit comments

Comments
 (0)