Skip to content

Commit f0aacac

Browse files
author
Sakis Kasampalis
committed
Merge pull request faif#37 from honishi/feature/borg-print
Updated print function's arguments in borg.py.
2 parents 9a6fa53 + 450bf3e commit f0aacac

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

borg.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ class YourBorg(Borg):
1818
rm1.state = 'Idle'
1919
rm2.state = 'Running'
2020

21-
print('rm1:', rm1)
22-
print('rm2:', rm2)
21+
print('rm1: {0}'.format(rm1))
22+
print('rm2: {0}'.format(rm2))
2323

2424
rm2.state = 'Zombie'
2525

26-
print('rm1:', rm1)
27-
print('rm2:', rm2)
26+
print('rm1: {0}'.format(rm1))
27+
print('rm2: {0}'.format(rm2))
2828

29-
print('rm1 id:', id(rm1))
30-
print('rm2 id:', id(rm2))
29+
print('rm1 id: {0}'.format(id(rm1)))
30+
print('rm2 id: {0}'.format(id(rm2)))
3131

3232
rm3 = YourBorg()
3333

34-
print('rm1:', rm1)
35-
print('rm2:', rm2)
36-
print('rm3:', rm3)
34+
print('rm1: {0}'.format(rm1))
35+
print('rm2: {0}'.format(rm2))
36+
print('rm3: {0}'.format(rm3))

0 commit comments

Comments
 (0)