Skip to content

Commit 3003f6b

Browse files
committed
Fixed string formatting.
1 parent 06a7f83 commit 3003f6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# -*- coding : utf-8 -*-
33

44
"""
5-
@author: Diogenes Augusto Fernandes Herminio <diofeher@gmail.com>
6-
https://gist.github.com/420905#file_builder_python.py
5+
@author: Diogenes Augusto Fernandes Herminio <diofeher@gmail.com>
6+
https://gist.github.com/420905#file_builder_python.py
77
"""
88

99

@@ -54,7 +54,7 @@ def __init__(self):
5454
self.size = None
5555

5656
def __repr__(self):
57-
return 'Floor: %s | Size: %s' % (self.floor, self.size)
57+
return 'Floor: {0.floor} | Size: {0.size}'.format(self)
5858

5959

6060
# Client

0 commit comments

Comments
 (0)