From: Shawn Hartsock Date: Thu, 24 Jul 2014 20:33:47 +0000 (-0400) Subject: Python 3: print_function X-Git-Tag: v1.0.3~3^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=868a9749008c37748d0ff585552428492fc68e7c;p=vcrpy.git Python 3: print_function Use print function if you must print, this lets us use the library in python 3 environments. partial: https://github.com/kevin1024/vcrpy/issues/86 --- diff --git a/vcr/compat/counter.py b/vcr/compat/counter.py index 65db4ed..a28bf23 100644 --- a/vcr/compat/counter.py +++ b/vcr/compat/counter.py @@ -1,3 +1,4 @@ +from __future__ import print_function from operator import itemgetter from heapq import nlargest from itertools import repeat, ifilter @@ -189,5 +190,5 @@ class Counter(dict): if __name__ == '__main__': import doctest - print doctest.testmod() + print(doctest.testmod())