summaryrefslogtreecommitdiff
path: root/math/scigraphica
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-08-20 09:05:16 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-08-20 09:05:16 +0000
commitb5c4321014148242d556e9804f8ced8cd18fa50f (patch)
treed12b063abc836810c6bfc6f3e1e2ed90944f6518 /math/scigraphica
parentAdd p5-DateTime-Calendar-FrenchRevolutionary 0.04 (diff)
Fix build on python2.3
Notes
Notes: svn path=/head/; revision=87356
Diffstat (limited to 'math/scigraphica')
-rw-r--r--math/scigraphica/files/patch-src::python::pstat.py13
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)