From 868a9749008c37748d0ff585552428492fc68e7c Mon Sep 17 00:00:00 2001 From: Shawn Hartsock Date: Thu, 24 Jul 2014 16:33:47 -0400 Subject: [PATCH] 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 --- vcr/compat/counter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())