Skip to content

Commit f4395ad

Browse files
committed
prefer python3 over 2
1 parent 322653e commit f4395ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chaining_method.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def __init__(self, name, action):
88
self.action = action
99

1010
def do_action(self):
11-
print self.name, self.action.name,
11+
print(self.name, self.action.name, end=' ')
1212
return self.action
1313

1414
class Action(object):
@@ -17,11 +17,11 @@ def __init__(self, name):
1717
self.name = name
1818

1919
def amount(self, val):
20-
print val,
20+
print(val, end=' ')
2121
return self
2222

2323
def stop(self):
24-
print 'then stop'
24+
print('then stop')
2525

2626
if __name__ == '__main__':
2727

0 commit comments

Comments
 (0)