Permalink
Browse files

don't whine if not used in py version

  • Loading branch information...
1 parent b1444b0 commit bf7a0e2d1c8f259b6aa05a4a27a985fe737959e4 @reedobrien reedobrien committed Nov 15, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 .coveragerc
  2. +1 −1 lumin/session.py
View
3 .coveragerc
@@ -24,6 +24,9 @@ exclude_lines =
if 0:
if __name__ == .__main__.:
+ # Don't report py2 as uncovered with py3
+ pragma: py2
+
ignore_errors = True
[html]
View
2 lumin/session.py
@@ -147,7 +147,7 @@ def save(self):
__len__ = manage_accessed(dict.__len__)
__iter__ = manage_accessed(dict.__iter__)
- if not PY3:
+ if not PY3: # pragma: py2
has_key = manage_accessed(dict.has_key)
iteritems = manage_accessed(dict.iteritems)
iterkeys = manage_accessed(dict.iterkeys)

0 comments on commit bf7a0e2

Please sign in to comment.