Skip to content

Commit bbdd6f8

Browse files
committed
Achieving Python2.7 compatibility
1 parent 77ffc22 commit bbdd6f8

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

structural/facade.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
3+
from __future__ import print_function
44
import time
55

66
SLEEP = 0.1
@@ -10,43 +10,43 @@
1010
class TC1:
1111

1212
def run(self):
13-
print("###### In Test 1 ######")
13+
print(u"###### In Test 1 ######")
1414
time.sleep(SLEEP)
15-
print("Setting up")
15+
print(u"Setting up")
1616
time.sleep(SLEEP)
17-
print("Running test")
17+
print(u"Running test")
1818
time.sleep(SLEEP)
19-
print("Tearing down")
19+
print(u"Tearing down")
2020
time.sleep(SLEEP)
21-
print("Test Finished\n")
21+
print(u"Test Finished\n")
2222

2323

2424
class TC2:
2525

2626
def run(self):
27-
print("###### In Test 2 ######")
27+
print(u"###### In Test 2 ######")
2828
time.sleep(SLEEP)
29-
print("Setting up")
29+
print(u"Setting up")
3030
time.sleep(SLEEP)
31-
print("Running test")
31+
print(u"Running test")
3232
time.sleep(SLEEP)
33-
print("Tearing down")
33+
print(u"Tearing down")
3434
time.sleep(SLEEP)
35-
print("Test Finished\n")
35+
print(u"Test Finished\n")
3636

3737

3838
class TC3:
3939

4040
def run(self):
41-
print("###### In Test 3 ######")
41+
print(u"###### In Test 3 ######")
4242
time.sleep(SLEEP)
43-
print("Setting up")
43+
print(u"Setting up")
4444
time.sleep(SLEEP)
45-
print("Running test")
45+
print(u"Running test")
4646
time.sleep(SLEEP)
47-
print("Tearing down")
47+
print(u"Tearing down")
4848
time.sleep(SLEEP)
49-
print("Test Finished\n")
49+
print(u"Test Finished\n")
5050

5151

5252
# Facade

0 commit comments

Comments
 (0)