Skip to content

Commit add4d0f

Browse files
committed
remove useless import and change indentation according to pep8
1 parent 6cd6533 commit add4d0f

File tree

2 files changed

+22
-24
lines changed

2 files changed

+22
-24
lines changed

python2/contemplate_koans.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,26 @@
1010
# So thank guys!
1111
#
1212

13-
import unittest
1413
import sys
1514

1615

1716
if __name__ == '__main__':
1817
if sys.version_info >= (3, 0):
1918
print("\nThis is the Python 2 version of Python Koans, but you are " +
20-
"running it with Python 3 or newer!\n\n"
21-
"Did you accidentally use the wrong python script? \nTry:\n\n" +
22-
" python contemplate_koans.py\n")
19+
"running it with Python 3 or newer!\n\n"
20+
"Did you accidentally use the wrong python script? \nTry:\n\n" +
21+
" python contemplate_koans.py\n")
2322
else:
2423
if sys.version_info < (2, 7):
2524
print("\n" +
26-
"********************************************************\n" +
27-
"WARNING:\n" +
28-
"This version of Python Koans was designed for " +
29-
"Python 2.7 or greater.\n" +
30-
"Your version of Python is older, so you may run into " +
31-
"problems!\n\n" +
32-
"But lets see how far we get...\n" +
33-
"********************************************************\n")
25+
"********************************************************\n" +
26+
"WARNING:\n" +
27+
"This version of Python Koans was designed for " +
28+
"Python 2.7 or greater.\n" +
29+
"Your version of Python is older, so you may run into " +
30+
"problems!\n\n" +
31+
"But lets see how far we get...\n" +
32+
"********************************************************\n")
3433

3534
from runner.mountain import Mountain
3635

python3/contemplate_koans.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,25 @@
1010
# So thanks guys!
1111
#
1212

13-
import unittest
1413
import sys
1514

1615
if __name__ == '__main__':
1716
if sys.version_info < (3, 0):
1817
print("\nThis is the Python 3 version of Python Koans, but you are " +
19-
"running it with Python 2!\n\n"
20-
"Did you accidentally use the wrong python script? \nTry:\n\n" +
21-
" python3 contemplate_koans.py\n")
18+
"running it with Python 2!\n\n"
19+
"Did you accidentally use the wrong python script? \nTry:\n\n" +
20+
" python3 contemplate_koans.py\n")
2221
else:
2322
if sys.version_info < (3, 3):
2423
print("\n" +
25-
"********************************************************\n" +
26-
"WARNING:\n" +
27-
"This version of Python Koans was designed for " +
28-
"Python 3.3 or greater.\n" +
29-
"Your version of Python is older, so you may run into " +
30-
"problems!\n\n" +
31-
"But lets see how far we get...\n" +
32-
"********************************************************\n")
24+
"********************************************************\n" +
25+
"WARNING:\n" +
26+
"This version of Python Koans was designed for " +
27+
"Python 3.3 or greater.\n" +
28+
"Your version of Python is older, so you may run into " +
29+
"problems!\n\n" +
30+
"But lets see how far we get...\n" +
31+
"********************************************************\n")
3332

3433
from runner.mountain import Mountain
3534

0 commit comments

Comments
 (0)