[matplotlib-devel] Cleanup tasks: Version checks

2011-04-12 Thread Tobias Hoppe
I've read the status page for py3k and stumbled upon the cleanup tasks, especially the version checks. I agree that calling sys.version_info[0] is not a smart choice. Why not use a new variable in __init__.py, something like a boolean __is_py3k__. Every module which needs a choice between py2

Re: [matplotlib-devel] cbook.py in matplotlib-py3k

2011-04-08 Thread Tobias Hoppe
n't get noticed because it only runs if the user doesn't already have a font cache file. I don't have a chance to look at this right now, but it you want to submit a patch to convert this os.path.walk usage to os.walk, that would of course be appreciated. In general, don'

[matplotlib-devel] cbook.py in matplotlib-py3k

2011-04-08 Thread Tobias Hoppe
Hi all,grepping matplotlib-py3k from github, configuring, compiling and installing with python3.2 under Ubuntu posed no problems. Firing up python and import matplotlib shows no errors in the first place. Importing pylab brings up errors in cbook.py, namely the call to os.path.walk() in line 1069 w