diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-27 20:53:31 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-27 20:53:31 -0500 |
commit | 040044ac530a9aafb81593e008f49615e70402a5 (patch) | |
tree | 04145c90aa3d1df01acd27d2f5fcf08cf6cf5a63 /test/backtest.py | |
parent | 422862666b38cb2b537cbf05d0e865f1e2506346 (diff) | |
download | python-coveragepy-040044ac530a9aafb81593e008f49615e70402a5.tar.gz |
The reload builtin moved in Py3k.
Diffstat (limited to 'test/backtest.py')
-rw-r--r-- | test/backtest.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/backtest.py b/test/backtest.py index 4460a78..656b35c 100644 --- a/test/backtest.py +++ b/test/backtest.py @@ -47,3 +47,9 @@ except NameError: def execfile(filename, globs): """A Python 3 implementation of execfile.""" exec(compile(open(filename).read(), filename, 'exec'), globs) + +# reload moved in Py3k +try: + from imp import reload +except: + reload = reload |