Skip to content

Commit

Permalink
prefer python3 over 2
Browse files Browse the repository at this point in the history
  • Loading branch information
faif committed Sep 20, 2014
1 parent 322653e commit f4395ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chaining_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def __init__(self, name, action):
self.action = action

def do_action(self):
print self.name, self.action.name,
print(self.name, self.action.name, end=' ')
return self.action

class Action(object):
Expand All @@ -17,11 +17,11 @@ def __init__(self, name):
self.name = name

def amount(self, val):
print val,
print(val, end=' ')
return self

def stop(self):
print 'then stop'
print('then stop')

if __name__ == '__main__':

Expand Down

0 comments on commit f4395ad

Please sign in to comment.