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 | b90e592e26da67372cb633150c49372799dc51bf (patch) | |
tree | d822e639649bd73b4c41d1d82a64bf457c477535 /coverage/misc.py | |
parent | 9298cc26cae698bd7e7ab0c0e0a8d0931d77f7e2 (diff) | |
download | python-coveragepy-b90e592e26da67372cb633150c49372799dc51bf.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 924199e..875d904 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 |