summaryrefslogtreecommitdiff
path: root/coverage/files.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/files.py')
-rw-r--r--coverage/files.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/files.py b/coverage/files.py
index ba228c23..3968b567 100644
--- a/coverage/files.py
+++ b/coverage/files.py
@@ -67,7 +67,7 @@ class FileLocator(object):
data = zi.get_data(parts[1])
except IOError:
continue
- if sys.hexversion > 0x03000000:
+ if sys.version_info >= (3, 0):
data = data.decode('utf8') # TODO: How to do this properly?
return data
return None