File tree Expand file tree Collapse file tree 5 files changed +22
-5
lines changed Expand file tree Collapse file tree 5 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,9 @@ The drawings have been moderated but there is no guarantee it'll actually be a p
130130Status
131131------
132132
133- **Beta ** - stable, under active dev, the API may change.
133+ **Stable **.
134134
135+ Raise any `issues `_ in the `github repository `_.
135136
136137.. |quickdraw | image :: https://raw.githubusercontent.com/martinohanlon/quickdraw_python/master/docs/images/quickdraw.png
137138 :scale: 100 %
@@ -166,4 +167,6 @@ Status
166167.. _QuickDrawData : https://quickdraw.readthedocs.io/en/latest/api.html#quickdrawdata
167168.. _QuickDrawDataGroup : https://quickdraw.readthedocs.io/en/latest/api.html#quickdrawdatagroup
168169.. _drawing_names : https://quickdraw.readthedocs.io/en/latest/api.html#quickdraw.QuickDrawDataGroup.drawing_names
169- .. _drawings : https://quickdraw.readthedocs.io/en/latest/api.html#quickdraw.QuickDrawDataGroup.drawings
170+ .. _drawings : https://quickdraw.readthedocs.io/en/latest/api.html#quickdraw.QuickDrawDataGroup.drawings
171+ .. _issues : https://github.com/martinohanlon/quickdraw_python/issues
172+ .. _github repository : https://github.com/martinohanlon/quickdraw_python
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ Change log
33
44.. currentmodule :: quickdraw
55
6+ 0.2.0 - 2012-03-10
7+ ------------------
8+
9+ + Python 3.7+ compatibility fix
10+
6110.1.0
712-----
813
Original file line number Diff line number Diff line change 1+ from quickdraw import QuickDrawDataGroup
2+ anvils = QuickDrawDataGroup ("anvil" )
3+ results = anvils .search_drawings (countrycode = "PL" )
Original file line number Diff line number Diff line change @@ -363,10 +363,13 @@ def drawings(self):
363363 if self ._current_drawing > self ._drawing_count - 1 :
364364 # reached the end to the drawings
365365 self ._current_drawing = 0
366- raise StopIteration ()
366+ return
367367 else :
368368 # yield the next drawing
369- yield self .get_drawing (index = self ._current_drawing )
369+ try :
370+ yield self .get_drawing (index = self ._current_drawing )
371+ except StopIteration :
372+ return
370373
371374 def get_drawing (self , index = None ):
372375 """
Original file line number Diff line number Diff line change 99
1010__project__ = 'quickdraw'
1111__desc__ = 'An API for downloading and reading the google quickdraw data.'
12- __version__ = '0.1 .0'
12+ __version__ = '0.2 .0'
1313__author__ = "Martin O'Hanlon"
1414__author_email__ = '[email protected] ' 1515__license__ = 'MIT'
7676 "Programming Language :: Python :: 3.4" ,
7777 "Programming Language :: Python :: 3.5" ,
7878 "Programming Language :: Python :: 3.6" ,
79+ "Programming Language :: Python :: 3.7" ,
80+ "Programming Language :: Python :: 3.8" ,
81+ "Programming Language :: Python :: 3.9" ,
7982]
8083
8184if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments