diff options
author | perky <perky@FreeBSD.org> | 2003-08-20 17:05:16 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2003-08-20 17:05:16 +0800 |
commit | cefbd02b2a31530eda3822650c5a757f3c19e82e (patch) | |
tree | d49b28cbd56d1833a3977cea13927f9298414db6 /math | |
parent | eb8515c01093ea47b5cb0c5a7b226615cf0840c9 (diff) | |
download | freebsd-ports-gnome-cefbd02b2a31530eda3822650c5a757f3c19e82e.tar.gz freebsd-ports-gnome-cefbd02b2a31530eda3822650c5a757f3c19e82e.tar.zst freebsd-ports-gnome-cefbd02b2a31530eda3822650c5a757f3c19e82e.zip |
Fix build on python2.3
Diffstat (limited to 'math')
-rw-r--r-- | math/scigraphica/files/patch-src::python::pstat.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/math/scigraphica/files/patch-src::python::pstat.py b/math/scigraphica/files/patch-src::python::pstat.py new file mode 100644 index 000000000000..8c3c32831afe --- /dev/null +++ b/math/scigraphica/files/patch-src::python::pstat.py @@ -0,0 +1,13 @@ +--- src/python/pstat.py.orig Wed Aug 20 18:00:12 2003 ++++ src/python/pstat.py Wed Aug 20 18:00:32 2003 +@@ -214,8 +214,8 @@ + index = col + column = abut(column,map(lambda x: x[index], listoflists)) + elif type(cnums) == StringType: # if an 'x[3:]' type expr. +- execstring = 'column = map(lambda x: x'+cnums+', listoflists)' +- exec(execstring) ++ execstring = 'map(lambda x: x'+cnums+', listoflists)' ++ column = eval(execstring) + else: # else it's just 1 col to get + index = cnums + column = map(lambda x: x[index], listoflists) |