mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
Update example code to work in Python 3
This commit is contained in:
parent
8dbbf9e699
commit
8ccf84a759
@ -32,7 +32,7 @@ Usage
|
||||
hash = "whatever-hash-you-want"
|
||||
rh = Robohash(hash)
|
||||
rh.assemble(roboset='any')
|
||||
with open("path/to/new/file.png", "w") as f:
|
||||
with open("path/to/new/file.png", "wb") as f:
|
||||
rh.img.save(f, format="png")
|
||||
|
||||
Robosets
|
||||
|
Loading…
x
Reference in New Issue
Block a user