Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e097e59

Browse files
committed
Merged revisions 8742 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint ........ r8742 | jdh2358 | 2010-10-12 12:17:16 -0400 (Tue, 12 Oct 2010) | 1 line fixed mpl finance buglets identified by Keith Goodman ........ svn path=/trunk/matplotlib/; revision=8746
1 parent 792ba13 commit e097e59

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/matplotlib/finance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
"""
66
#from __future__ import division
7-
import os, time, warnings
7+
import os, warnings
88
from urllib2 import urlopen
99

1010
try:
@@ -17,7 +17,7 @@
1717

1818
from matplotlib import verbose, get_configdir
1919
from matplotlib.dates import date2num
20-
from matplotlib.cbook import iterable, is_string_like
20+
from matplotlib.cbook import iterable
2121
from matplotlib.collections import LineCollection, PolyCollection
2222
from matplotlib.colors import colorConverter
2323
from matplotlib.lines import Line2D, TICKLEFT, TICKRIGHT
@@ -218,7 +218,7 @@ def quotes_historical_yahoo(ticker, date1, date2, asobject=False,
218218
if len(ret) == 0:
219219
return None
220220
except IOError, exc:
221-
warnings.warn('urlopen() failure\n' + url + '\n' + exc.strerror[1])
221+
warnings.warn('fh failure\n%s'%(exc.strerror[1]))
222222
return None
223223

224224
return ret

0 commit comments

Comments
 (0)