|
From: <jd...@us...> - 2010-10-12 16:17:22
|
Revision: 8742
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8742&view=rev
Author: jdh2358
Date: 2010-10-12 16:17:16 +0000 (Tue, 12 Oct 2010)
Log Message:
-----------
fixed mpl finance buglets identified by Keith Goodman
Modified Paths:
--------------
branches/v1_0_maint/lib/matplotlib/finance.py
Modified: branches/v1_0_maint/lib/matplotlib/finance.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/finance.py 2010-10-11 14:04:43 UTC (rev 8741)
+++ branches/v1_0_maint/lib/matplotlib/finance.py 2010-10-12 16:17:16 UTC (rev 8742)
@@ -4,7 +4,7 @@
"""
#from __future__ import division
-import os, time, warnings
+import os, warnings
from urllib2 import urlopen
try:
@@ -17,7 +17,7 @@
from matplotlib import verbose, get_configdir
from matplotlib.dates import date2num
-from matplotlib.cbook import iterable, is_string_like
+from matplotlib.cbook import iterable
from matplotlib.collections import LineCollection, PolyCollection
from matplotlib.colors import colorConverter
from matplotlib.lines import Line2D, TICKLEFT, TICKRIGHT
@@ -218,7 +218,7 @@
if len(ret) == 0:
return None
except IOError, exc:
- warnings.warn('urlopen() failure\n' + url + '\n' + exc.strerror[1])
+ warnings.warn('fh failure\n%s'%(exc.strerror[1]))
return None
return ret
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|