Skip to content

Commit b76cbe8

Browse files
author
Hugo Osvaldo Barrera
committed
Update some outdated documentation
1 parent f54f5ef commit b76cbe8

2 files changed

Lines changed: 9 additions & 12 deletions

File tree

barcode/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def save(self, filename, options=None, text=None):
5656
extension).
5757
options : Dict
5858
The same as in `self.render`.
59-
text : str (unicode on Python 2)
59+
text : str
6060
Text to render under the barcode.
6161
6262
:returns: The full filename with extension.
@@ -79,7 +79,7 @@ def write(self, fp, options=None, text=None):
7979
Object to write the raw data in.
8080
options : Dict
8181
The same as in `self.render`.
82-
text : str (unicode on Python 2)
82+
text : str
8383
Text to render under the barcode.
8484
"""
8585
output = self.render(options, text)
@@ -94,7 +94,7 @@ def render(self, writer_options=None, text=None):
9494
:parameters:
9595
writer_options : Dict
9696
Options for `self.writer`, see writer docs for details.
97-
text : str (unicode on Python 2)
97+
text : str
9898
Text to render under the barcode.
9999
100100
:returns: Output of the writers render method.

docs/source/commandline.rst

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@ Create barcodes from the commandline
33

44
.. versionadded:: 0.7beta4
55

6-
PyBarcode ships with a little commandline script to generate barcodes
6+
python-barcode ships with a little commandline script to generate barcodes
77
without knowing Python. The install script detects your Python version and
8-
adds the major version number to the executable script. On Python 2 it is
9-
called `pybarcode2` and on Python 3 `pybarcode3`. When installing in a
10-
systemwide direction, you can have pyBarcode installed in Python 2 and 3 at
11-
the same time without trouble.
8+
adds the major version number to the executable script.
129

1310
Usage::
1411

15-
$ pybarcode{2,3} create "My Text" outfile
12+
$ python-barcode create "My Text" outfile
1613
New barcode saved as outfile.svg.
17-
$ pybarcode{2,3} create -t png "My Text" outfile
14+
$ python-barcode create -t png "My Text" outfile
1815
New barcode saved as outfile.png.
19-
$ pybarcode{2,3} create -b ean8 -t jpeg "1234567" ean8_out
16+
$ python-barcode create -b ean8 -t jpeg "1234567" ean8_out
2017
New barcode saved as ean8_out.jpg.
2118

22-
See `pybarcode{2,3} -h` for more options.
19+
See `python-barcode -h` for more options.

0 commit comments

Comments
 (0)