Skip to content

Commit

Permalink
Fixed using basestring for stockno check.
Browse files Browse the repository at this point in the history
  • Loading branch information
toomore committed Apr 10, 2014
1 parent 42df8da commit 0f39d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grs/realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class RealtimeStock(object):
:rtype: dict
"""
def __init__(self, no):
assert isinstance(no, str), '`no` must be a string'
assert isinstance(no, basestring), '`no` must be a string'
self.__raw = ''
page = urllib2.urlopen(
'http://mis.tse.com.tw/data/{0}.csv?r={1}'.format(
Expand Down

0 comments on commit 0f39d92

Please sign in to comment.