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

fix examples in README.md #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
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