Skip to content

Commit 10b0191

Browse files
author
Hugo Osvaldo Barrera
committed
Update outdated references in the README
1 parent c75556e commit 10b0191

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,12 @@ Interactive::
8787
>>> fullname = ean.save('ean13_barcode')
8888
'ean13_barcode.png'
8989
# New in v0.4.2
90-
>>> from StringIO import StringIO
91-
>>> fp = StringIO()
90+
>>> from io import BytesIO
91+
>>> fp = BytesIO()
9292
>>> ean.write(fp)
9393
# or
9494
>>> f = open('/my/new/file', 'wb')
9595
>>> ean.write(f) # Pillow (ImageWriter) produces RAW format here
96-
# New in v0.5.0
9796
>>> from barcode import generate
9897
>>> name = generate('EAN13', '5901234123457', output='barcode_svg')
9998
>>> name

0 commit comments

Comments
 (0)