Skip to content

Commit 42f3858

Browse files
authored
Merge pull request #26 from jwilk/spelling
Fix typos
2 parents d174092 + 6eebec5 commit 42f3858

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Version 2.8.0
2626
- Rewritten snap method, it now also works with backends which do not report
2727
the number of lines in advance. Also, it now reads the data into a generic
2828
memory buffer, removing the dependency on Pillow and numpy/numarray in the
29-
C code. A PIL image is created via via Image.frombuffer in sane.py now.
29+
C code. A PIL image is created via Image.frombuffer in sane.py now.
3030
- General cleanup, fixing some Py_INCREF and Py_DECREF issues along the way.
3131

3232
- sane.py:

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
python-sane documentation
33
*************************
44

5-
The sane module is an Python interface to the SANE (Scanning is Now Easy)
5+
The sane module is a Python interface to the SANE (Scanning is Now Easy)
66
library, which provides access to various raster scanning devices such as
77
flatbed scanners and digital cameras. For more information about SANE, consult
88
the SANE website at `www.sane-project.org <http://www.sane-project.org>`_.

sane.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def start(self):
267267
"""
268268
Initiate a scanning operation.
269269
270-
:throws _sane.error: If an error occurs, for instance if a option is
270+
:throws _sane.error: If an error occurs, for instance if an option is
271271
set to an invalid value.
272272
"""
273273
self.dev.start()
@@ -310,7 +310,7 @@ def scan(self):
310310
def arr_snap(self):
311311
"""
312312
Read image data and return a 3d numpy array of the shape
313-
``(width, heigth, nbands)``.
313+
``(width, height, nbands)``.
314314
315315
:returns: A ``numpy.array`` object.
316316
:raises _sane.error: If an error occurs.

sanedoc.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
python-sane documentation
33
*************************
44

5-
The sane module is an Python interface to the SANE (Scanning is Now
5+
The sane module is a Python interface to the SANE (Scanning is Now
66
Easy) library, which provides access to various raster scanning
77
devices such as flatbed scanners and digital cameras. For more
88
information about SANE, consult the SANE website at www.sane-
@@ -118,7 +118,7 @@ class class sane.SaneDev(devname)
118118
arr_snap()
119119

120120
Read image data and return a 3d numpy array of the shape
121-
"(nbands, width, heigth)".
121+
"(nbands, width, height)".
122122

123123
Returns:
124124
A "numpy.array" object.
@@ -194,7 +194,7 @@ class class sane.SaneDev(devname)
194194
snap(no_cancel=False)
195195

196196
Read image data and return a "PIL.Image" object. An RGB image is
197-
returned for multi-band images, a L image for single-band
197+
returned for multi-band images, an L image for single-band
198198
images. "no_cancel" is used for ADF scans by "_SaneIterator".
199199

200200
Returns:
@@ -210,7 +210,7 @@ class class sane.SaneDev(devname)
210210
Initiate a scanning operation.
211211

212212
Throws _sane.error:
213-
If an error occurs, for instance if a option is set to an
213+
If an error occurs, for instance if an option is set to an
214214
invalid value.
215215

216216
class class sane.Option(args, scanDev)

0 commit comments

Comments
 (0)