Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions googlemaps/places.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,13 @@ def places_photo(client, photo_reference, max_width=None, max_height=None):
:rtype: iterator containing the raw image data, which typically can be
used to save an image file locally. For example:

```
.. code-block:: python

f = open(local_filename, 'wb')
for chunk in client.places_photo(photo_reference, max_width=100):
if chunk:
f.write(chunk)
f.close()
```
"""

if not (max_width or max_height):
Expand Down