diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-18 13:25:49 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-18 13:25:49 -0500 |
commit | 8d60d392c5d9b00560c4a9418902f12126dae125 (patch) | |
tree | c6634c5c0b940a32c1fb0afb36b4a928a91f3304 /coverage/misc.py | |
parent | 0d0836309b6354a07fb09cd8d28b309b6c8dba6c (diff) | |
download | python-coveragepy-git-8d60d392c5d9b00560c4a9418902f12126dae125.tar.gz |
Collect all the nudgy environment checks into coverage.env
Diffstat (limited to 'coverage/misc.py')
-rw-r--r-- | coverage/misc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/misc.py b/coverage/misc.py index 924199ef..875d904a 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -4,8 +4,8 @@ import errno import hashlib import inspect import os -import sys +from coverage import env from coverage.backward import string_class, to_bytes @@ -154,7 +154,7 @@ def overrides(obj, method_name, base_class): # Python 2/3 compatibility: Python 2 returns an instancemethod object, the # function is the .im_func attribute. Python 3 returns a plain function # object already. - if sys.version_info < (3, 0): + if env.PY2: klass_func = klass_func.im_func base_func = base_func.im_func |