summaryrefslogtreecommitdiff
path: root/tests/backtest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-09-28 09:39:19 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-09-28 09:39:19 -0400
commitc36e091f44d4fa82cdcde671c0123cd9dac0b784 (patch)
tree88de67f10b49b30ac01e7dc8932daa5e9562213f /tests/backtest.py
parent9a32586334141664fb393e56d3e1d76545993d79 (diff)
downloadpython-coveragepy-git-c36e091f44d4fa82cdcde671c0123cd9dac0b784.tar.gz
Modernize.
Diffstat (limited to 'tests/backtest.py')
-rw-r--r--tests/backtest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/backtest.py b/tests/backtest.py
index b17aa242..de15c80c 100644
--- a/tests/backtest.py
+++ b/tests/backtest.py
@@ -6,7 +6,7 @@
import os
-# Py2k and 3k don't agree on how to run commands in a subprocess.
+# Py2 and Py3 don't agree on how to run commands in a subprocess.
try:
import subprocess
except ImportError:
@@ -40,9 +40,9 @@ else:
return status, output
-# No more execfile in Py3k
+# No more execfile in Py3
try:
- execfile = execfile
+ execfile
except NameError:
def execfile(filename, globs):
"""A Python 3 implementation of execfile."""