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

Lines changed: 3 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy