We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fea73d commit 02422bcCopy full SHA for 02422bc
2 files changed
behavioral/command.py
@@ -1,6 +1,6 @@
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
-
+from __future__ import print_function
4
import os
5
from os.path import lexists
6
@@ -18,7 +18,7 @@ def undo(self):
18
self.rename(self.dest, self.src)
19
20
def rename(self, src, dest):
21
- print('renaming {} to {}'.format(src, dest))
+ print(u"renaming %s to %s" % (src, dest))
22
os.rename(src, dest)
23
24
behavioral/state.py
@@ -15,7 +15,8 @@ def scan(self):
15
self.pos += 1
16
if self.pos == len(self.stations):
17
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):
0 commit comments