diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-12-22 07:32:48 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-12-22 07:32:48 -0300 |
commit | e3523d970c9fd86d63d98156f70acf6fa7d7deb0 (patch) | |
tree | 52d84d0aa9eaddf9b6d8cc0c9709fbcc6e8e08e3 /libre/sagemath/python-2.7.11.patch | |
parent | 44ff78ec429a319a21c1fb10c3f7590867b2b861 (diff) | |
download | abslibre-e3523d970c9fd86d63d98156f70acf6fa7d7deb0.tar.gz abslibre-e3523d970c9fd86d63d98156f70acf6fa7d7deb0.tar.bz2 abslibre-e3523d970c9fd86d63d98156f70acf6fa7d7deb0.zip |
sagemath-6.10-2.parabola1: updating version
* fix timeit with python 2.7.11
Diffstat (limited to 'libre/sagemath/python-2.7.11.patch')
-rw-r--r-- | libre/sagemath/python-2.7.11.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libre/sagemath/python-2.7.11.patch b/libre/sagemath/python-2.7.11.patch new file mode 100644 index 000000000..3ff74c938 --- /dev/null +++ b/libre/sagemath/python-2.7.11.patch @@ -0,0 +1,11 @@ +--- src/sage/misc/sage_timeit.py.orig 2015-12-19 11:09:42.836938821 +0100 ++++ src/sage/misc/sage_timeit.py 2015-12-19 11:10:27.090217304 +0100 +@@ -217,7 +217,7 @@ + # but is there a better way to achieve that the code stmt has access + # to the shell namespace? + +- src = timeit_.template % {'stmt': timeit_.reindent(stmt, 8), ++ src = timeit_.template % {'init': "", 'stmt': timeit_.reindent(stmt, 8), + 'setup': "pass"} + code = compile(src, "<magic-timeit>", "exec") + ns = {} |