Small patch for __init__.py

Hi all,

Matplotlib CVS has a bug in the validate_key() function in __init__.py
that prevents it from corrrectly handling unrecognized entries in the
matplotlibrc file. The attached patch fixes it by passing the
(previously undefined) variable fname.

-- Ed

Index: __init__.py

···

===================================================================
RCS file: /cvsroot/matplotlib/matplotlib/lib/matplotlib/__init__.py,v
retrieving revision 1.114
diff -r1.114 __init__.py
885c885
< def validate_key(key, val, line, cnt, fail_on_error):
---

def validate_key(key, val, line, cnt, fname, fail_on_error):

949c949
< cval = validate_key(key, val, line, cnt, fail_on_error)
---

            cval = validate_key(key, val, line, cnt, fname, fail_on_error)

954c954
< cval = validate_key(key, val, line, cnt, fail_on_error)
---

        cval = validate_key(key, val, line, cnt, fname, fail_on_error)

Thanks, this is fixed in cvs.

···

On Thursday 02 February 2006 15:26, Ed Schofield wrote:

Hi all,

Matplotlib CVS has a bug in the validate_key() function in __init__.py
that prevents it from corrrectly handling unrecognized entries in the
matplotlibrc file. The attached patch fixes it by passing the
(previously undefined) variable fname.