We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c75556e commit 10b0191Copy full SHA for 10b0191
1 file changed
README.rst
@@ -87,13 +87,12 @@ Interactive::
87
>>> fullname = ean.save('ean13_barcode')
88
'ean13_barcode.png'
89
# New in v0.4.2
90
- >>> from StringIO import StringIO
91
- >>> fp = StringIO()
+ >>> from io import BytesIO
+ >>> fp = BytesIO()
92
>>> ean.write(fp)
93
# or
94
>>> f = open('/my/new/file', 'wb')
95
>>> ean.write(f) # Pillow (ImageWriter) produces RAW format here
96
- # New in v0.5.0
97
>>> from barcode import generate
98
>>> name = generate('EAN13', '5901234123457', output='barcode_svg')
99
>>> name
0 commit comments