Skip to content

Commit

Permalink
Further code elaboration
Browse files Browse the repository at this point in the history
  • Loading branch information
0--key committed Feb 10, 2017
1 parent 9fea73d commit 02422bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions behavioral/command.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import print_function
import os
from os.path import lexists

Expand All @@ -18,7 +18,7 @@ def undo(self):
self.rename(self.dest, self.src)

def rename(self, src, dest):
print('renaming {} to {}'.format(src, dest))
print(u"renaming %s to %s" % (src, dest))
os.rename(src, dest)


Expand Down
3 changes: 2 additions & 1 deletion behavioral/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def scan(self):
self.pos += 1
if self.pos == len(self.stations):
self.pos = 0
print(u"Scanning... Station is", self.stations[self.pos], self.name)
print(u"Scanning... Station is %s %s" %
(self.stations[self.pos], self.name))


class AmState(State):
Expand Down

0 comments on commit 02422bc

Please sign in to comment.