Skip to content

Commit 35eed3d

Browse files
author
Hugo Osvaldo Barrera
committed
Remove needless unicode escapes
1 parent cf9a359 commit 35eed3d

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

README.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,22 @@ Interactive::
7070

7171
>>> import barcode
7272
>>> barcode.PROVIDED_BARCODES
73-
[u'code39', u'code128', u'ean', u'ean13', u'ean8', u'gs1', u'gtin',
74-
u'isbn', u'isbn10', u'isbn13', u'issn', u'jan', u'pzn', u'upc', u'upca']
73+
['code39', 'code128', 'ean', 'ean13', 'ean8', 'gs1', 'gtin',
74+
'isbn', 'isbn10', 'isbn13', 'issn', 'jan', 'pzn', 'upc', 'upca']
7575
>>> EAN = barcode.get_barcode_class('ean13')
7676
>>> EAN
7777
<class 'barcode.ean.EuropeanArticleNumber13'>
78-
>>> ean = EAN(u'5901234123457')
78+
>>> ean = EAN('5901234123457')
7979
>>> ean
8080
<barcode.ean.EuropeanArticleNumber13 object at 0x00BE98F0>
8181
>>> fullname = ean.save('ean13_barcode')
8282
>>> fullname
83-
u'ean13_barcode.svg'
83+
'ean13_barcode.svg'
8484
# Example with PNG
8585
>>> from barcode.writer import ImageWriter
86-
>>> ean = EAN(u'5901234123457', writer=ImageWriter())
86+
>>> ean = EAN('5901234123457', writer=ImageWriter())
8787
>>> fullname = ean.save('ean13_barcode')
88-
u'ean13_barcode.png'
88+
'ean13_barcode.png'
8989
# New in v0.4.2
9090
>>> from StringIO import StringIO
9191
>>> fp = StringIO()
@@ -95,12 +95,12 @@ Interactive::
9595
>>> ean.write(f) # PIL (ImageWriter) produces RAW format here
9696
# New in v0.5.0
9797
>>> from barcode import generate
98-
>>> name = generate('EAN13', u'5901234123457', output='barcode_svg')
98+
>>> name = generate('EAN13', '5901234123457', output='barcode_svg')
9999
>>> name
100-
u'barcode_svg.svg'
100+
'barcode_svg.svg'
101101
# with file like object
102102
>>> fp = StringIO()
103-
>>> generate('EAN13', u'5901234123457', writer=ImageWriter(), output=fp)
103+
>>> generate('EAN13', '5901234123457', writer=ImageWriter(), output=fp)
104104
>>>
105105

106106
Now open ean13_barcode.[svg|png] in a graphic app or simply in your browser

barcode/isxn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
>>> ISBN = get_barcode('isbn10')
2020
>>> isbn = ISBN('0132354187')
2121
>>> unicode(isbn)
22-
u'0132354187'
22+
'0132354187'
2323
>>> isbn.get_fullcode()
24-
u'9780132354189'
24+
'9780132354189'
2525
>>> # Test with wrong checksum
2626
>>> isbn = ISBN('0132354180')
2727
>>> unicode(isbn)
28-
u'0132354187'
28+
'0132354187'
2929
3030
"""
3131
__docformat__ = 'restructuredtext en'

docs/barcode.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ Quick example::
2727
>>> ean = barcode.get('ean13', '123456789102')
2828
# Now we look if the checksum was added
2929
>>> ean.get_fullcode()
30-
u'1234567891026'
30+
'1234567891026'
3131
>>> filename = ean.save('ean13')
3232
>>> filename
33-
u'ean13.svg'
33+
'ean13.svg'
3434
>>> options = dict(compress=True)
3535
>>> filename = ean.save('ean13', options)
3636
>>> filename
37-
u'ean13.svgz'
37+
'ean13.svgz'
3838

3939
Now you have ean13.svg and the compressed ean13.svgz in your current
4040
working directory. Open it and see the result.
@@ -55,4 +55,4 @@ Quick example::
5555
>>> ean = barcode.get('ean13', '123456789102', writer=ImageWriter())
5656
>>> filename = ean.save('ean13')
5757
>>> filename
58-
u'ean13.png'
58+
'ean13.png'

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@
176176
# Grouping the document tree into LaTeX files. List of tuples
177177
# (source start file, target name, title, author, documentclass [howto/manual]).
178178
latex_documents = [
179-
('index', 'pyBarcode.tex', u'pyBarcode Documentation',
180-
u'Thorsten Weimann', 'manual'),
179+
('index', 'pyBarcode.tex', 'pyBarcode Documentation',
180+
'Thorsten Weimann', 'manual'),
181181
]
182182

183183
# The name of an image file (relative to this directory) to place at the top of

0 commit comments

Comments
 (0)