Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
fix examples in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
combs committed May 19, 2020
1 parent 0245f65 commit eed7579
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ c = Claptcha("Text", "FreeMono.ttf")
# Get PIL Image object
text, image = c.image

print(text)) # 'Text'
print(type(image))) # <class 'PIL.Image.Image'>
print(text) # 'Text'
print(type(image)) # <class 'PIL.Image.Image'>

# Get BytesIO object (note that it will represent a different image, just
# with the same text)
text, bytes = c.bytes

print(text)) # 'Text'
print(type(bytes))) # <class '_io.BytesIO'>
print(text) # 'Text'
print(type(bytes)) # <class '_io.BytesIO'>

# Save a PNG file 'test.png'
text, file = c.write('test.png')

print(text)) # 'Text'
print(file)) # 'test.png'
print(text) # 'Text'
print(file) # 'test.png'
```

```python
Expand Down

0 comments on commit eed7579

Please sign in to comment.