Skip to content

Commit

Permalink
Made collections_compat valid in Python 2 and 3.
Browse files Browse the repository at this point in the history
The coverage command needs to be able to parse this file when collecting
data.  This was never an issue before because it's never used with
Python 3.
  • Loading branch information
Rocky Meza committed Aug 1, 2014
1 parent a2af3a1 commit 4257630
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion betterforms/collections_compat.py
@@ -1,3 +1,4 @@
from __future__ import print_function
# python < 2.7 compatibility for collections.Counter
# source: http://code.activestate.com/recipes/576611-counter-class/
from operator import itemgetter
Expand Down Expand Up @@ -189,4 +190,4 @@ def __and__(self, other):

if __name__ == '__main__':
import doctest
print doctest.testmod()
print(doctest.testmod())

0 comments on commit 4257630

Please sign in to comment.