From be97e4c18a044c32ac8786c8c1a39d9a20aefdab Mon Sep 17 00:00:00 2001 From: xan Date: Thu, 30 Apr 2015 11:16:02 +0800 Subject: [PATCH] add __future__ print_function as print(number, end=' ') won't work in python 2.x --- iterator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iterator.py b/iterator.py index 3aa36b8d4..74d671385 100644 --- a/iterator.py +++ b/iterator.py @@ -5,6 +5,8 @@ Implementation of the iterator pattern with a generator""" +from __future__ import print_function + def count_to(count): """Counts by word numbers, up to a maximum of five"""