From 9fad1bddd3d162013f1248d3ba1fa93bacea5a7b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 13 Dec 2009 17:21:58 -0500 Subject: version_info is a nicer way to check Python versions than hexversion is. --- coverage/backward.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/backward.py') diff --git a/coverage/backward.py b/coverage/backward.py index 624daa2..425b2f8 100644 --- a/coverage/backward.py +++ b/coverage/backward.py @@ -56,7 +56,7 @@ except NameError: # Exec is a statement in Py2, a function in Py3 -if sys.hexversion > 0x03000000: +if sys.version_info >= (3, 0): def exec_function(source, filename, global_map): """A wrapper around exec().""" exec(compile(source, filename, "exec"), global_map) -- cgit v1.2.1