|
From: <md...@us...> - 2008-06-11 17:06:11
|
Revision: 5473
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5473&view=rev
Author: mdboom
Date: 2008-06-11 10:05:42 -0700 (Wed, 11 Jun 2008)
Log Message:
-----------
Fix Python 2.4 incompatibility.
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/pyparsing.py
Modified: trunk/matplotlib/lib/matplotlib/pyparsing.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/pyparsing.py 2008-06-11 16:24:12 UTC (rev 5472)
+++ trunk/matplotlib/lib/matplotlib/pyparsing.py 2008-06-11 17:05:42 UTC (rev 5473)
@@ -213,8 +213,7 @@
ErrorStop indicates that parsing is to stop immediately because
an unbacktrackable syntax error has been found"""
def __init__(self, pe):
- super(ParseSyntaxException, self).__init__(
- pe.pstr, pe.loc, pe.msg, pe.parserElement)
+ ParseFatalException.__init__(self, pe.pstr, pe.loc, pe.msg, pe.parserElement)
#~ class ReparseException(ParseBaseException):
#~ """Experimental class - parse actions can raise this exception to cause
@@ -3481,16 +3480,16 @@
return ret
def indentedBlock(blockStatementExpr, indentStack, indent=True):
- """Helper method for defining space-delimited indentation blocks, such as
+ """Helper method for defining space-delimited indentation blocks, such as
those used to define block statements in Python source code.
-
+
Parameters:
- - blockStatementExpr - expression defining syntax of statement that
+ - blockStatementExpr - expression defining syntax of statement that
is repeated within the indented block
- indentStack - list created by caller to manage indentation stack
(multiple statementWithIndentedBlock expressions within a single grammar
should share a common indentStack)
- - indent - boolean indicating whether block must be indented beyond the
+ - indent - boolean indicating whether block must be indented beyond the
the current level; set to False for block of left-most statements
(default=True)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|