summaryrefslogtreecommitdiff
path: root/coverage/config.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-06-13 07:57:18 -0400
committerNed Batchelder <ned@nedbatchelder.com>2018-06-13 07:57:18 -0400
commit1bbfe7e938d0250a1bb777492f617e95349abc5d (patch)
treea9aabf7bee2a67d4479e34a56e4efabb6bbfb1e2 /coverage/config.py
parent637851fcc659b92ad493c3edc87f9f2fc9b1c313 (diff)
downloadpython-coveragepy-git-1bbfe7e938d0250a1bb777492f617e95349abc5d.tar.gz
Make version checking more uniform
Diffstat (limited to 'coverage/config.py')
-rw-r--r--coverage/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/config.py b/coverage/config.py
index 285cb219..effa382f 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -6,8 +6,8 @@
import collections
import os
import re
-import sys
+from coverage import env
from coverage.backward import configparser, iitems, string_class
from coverage.misc import contract, CoverageException, isolate_module
@@ -33,7 +33,7 @@ class HandyConfigParser(configparser.RawConfigParser):
def read(self, filenames):
"""Read a file name as UTF-8 configuration data."""
kwargs = {}
- if sys.version_info >= (3, 2):
+ if env.PYVERSION >= (3, 2):
kwargs['encoding'] = "utf-8"
return configparser.RawConfigParser.read(self, filenames, **kwargs)