diff --git a/generators.html b/generators.html index 83df95c..eeb4d8a 100644 --- a/generators.html +++ b/generators.html @@ -302,10 +302,10 @@ def plural(noun):
 >>> def make_counter(x):
-...     print 'entering make_counter'
+...     print('entering make_counter')
 ...     while True:
 ...         yield x                    
-...         print 'incrementing x'
+...         print('incrementing x')
 ...         x = x + 1
 ... 
 >>> counter = make_counter(2)