Skip to content

Commit be97e4c

Browse files
committed
add __future__ print_function as print(number, end=' ') won't work in python 2.x
1 parent be8f565 commit be97e4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

iterator.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
66
Implementation of the iterator pattern with a generator"""
77

8+
from __future__ import print_function
9+
810

911
def count_to(count):
1012
"""Counts by word numbers, up to a maximum of five"""

0 commit comments

Comments
 (0)