Skip to content

Commit 685cbe1

Browse files
author
Martin O'Hanlon
authored
Merge pull request #10 from martinohanlon/dev
v0.2.0
2 parents 61d8413 + ca1b205 commit 685cbe1

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ The drawings have been moderated but there is no guarantee it'll actually be a p
130130
Status
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

docs/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
611
0.1.0
712
-----
813

examples/search_drawing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from quickdraw import QuickDrawDataGroup
2+
anvils = QuickDrawDataGroup("anvil")
3+
results = anvils.search_drawings(countrycode="PL")

quickdraw/data.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
"""

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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'
@@ -76,6 +76,9 @@
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

8184
if __name__ == '__main__':

0 commit comments

Comments
 (0)