Skip to content

Commit db0198b

Browse files
authored
Merge pull request #53 from glensc/typos
Doc: Minor spelling fixes
2 parents 49c05da + 891dc5c commit db0198b

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.new_fusepy_api

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Let's see how these are implemented.
9595
.. [#] See ``examples/xmp.py`` for the argument list of the fs methods.
9696

9797
Regarding return values: in each method, you can signal success or
98-
error by returning ``0`` (*succes*), a negative number (*error*,
98+
error by returning ``0`` (*success*), a negative number (*error*,
9999
interpreted as negated errno), not returning anything (*success*) or
100100
by raising (not catching) an exception (*error*, Python infers an
101101
errno from the nature of the exception).
@@ -197,7 +197,7 @@ Simple objects to represent system structures
197197

198198
In old Pythons, ``os.stat()`` returned file attributes as a tuple, and
199199
for the convenient access of the stat values, you got a bunch of
200-
constats with it (so you queried file size like
200+
constants with it (so you queried file size like
201201
``os.stat("foofile")[stat.ST_SIZE]``). While this approach still works,
202202
and if you print a stat result, it looks like a tuple, *it is, in fact,
203203
not a tuple*. It's an object which is immutable and provides the
@@ -219,8 +219,8 @@ Similarly, when listing directories, you have to return a sequence of
219219
``fuse.Direntry`` objects which can be constructed from filenames
220220
(``fuse.Direntry("foofile")``).
221221

222-
Does the above senctence make sense? I hope so. Anyway, *it's not true
223-
as is*. (Truth has been sacrified for making it short.) Don't worry, we
222+
Does the above sentence make sense? I hope so. Anyway, *it's not true
223+
as is*. (Truth has been sacrificed for making it short.) Don't worry, we
224224
uncover the lies immediately:
225225

226226
- *You don't necessarily have to return a sequence*. You just have to
@@ -247,7 +247,7 @@ so called *filehandle*. [#]_ FUSE internally will allocate a (FUSE)
247247
filehandle upon open, and keep a record of your (Python) filehandle.
248248
When the system will want to use the FUSE filehandle for I/O, the
249249
respective Python method will get the (py-)filehandle as an argument.
250-
Ie., you can use the filehandle to preserve a state.
250+
I.e., you can use the filehandle to preserve a state.
251251

252252
You might as well want the filehandle to be an instance of a dedicated
253253
class, and want the filesystem methods get delegated to the filehandle.
@@ -287,7 +287,7 @@ Complete support for hi-lib
287287
The Python bindings support all highlevel (pathname based) methods of
288288
the Fuse library as of API revision 26, including `create`, `access`,
289289
`flush`, extended attributes, advisory file locking, nanosec precise
290-
setting of acces/modify times, and `bmap`.
290+
setting of access/modify times, and `bmap`.
291291

292292

293293
Reflection
@@ -327,6 +327,6 @@ Long-term compatibility
327327
Your filesystem is expected to set ``fuse.fuse_python_api`` in order to
328328
make it easy for the fuse module to find out the which FUSE-Python API revision
329329
is appropriate for your code. Concretely, set ``fuse.fuse_python_api``
330-
to the value of ``fuse.FUSE_PYTHON_API_VERSION`` as it's definied in the fuse.pyi
330+
to the value of ``fuse.FUSE_PYTHON_API_VERSION`` as it's defined in the fuse.pyi
331331
instance you code your filesystem against. This ensures that your code will
332332
keep working even if further API revisions take place.

example/_find_fuse_parts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import sys, os, glob
1+
import sys, glob
22
from os.path import realpath, dirname, join
33
from traceback import format_exception
44

example/xmp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def utime(self, path, times):
110110

111111
# The following utimens method would do the same as the above utime method.
112112
# We can't make it better though as the Python stdlib doesn't know of
113-
# subsecond preciseness in acces/modify times.
113+
# sub-second preciseness in access/modify times.
114114
#
115115
# def utimens(self, path, ts_acc, ts_mod):
116116
# os.utime("." + path, (ts_acc.tv_sec, ts_mod.tv_sec))
@@ -134,7 +134,7 @@ def access(self, path, mode):
134134
# # We use the "user" namespace to please XFS utils
135135
# aa = ["user." + a for a in ("foo", "bar")]
136136
# if size == 0:
137-
# # We are asked for size of the attr list, ie. joint size of attrs
137+
# # We are asked for size of the attr list, i.e. joint size of attrs
138138
# # plus null separators.
139139
# return len("".join(aa)) + len(aa)
140140
# return aa
@@ -146,7 +146,7 @@ def statfs(self):
146146
If you are not reusing an existing statvfs object, start with
147147
fuse.StatVFS(), and define the attributes.
148148
149-
To provide usable information (ie., you want sensible df(1)
149+
To provide usable information (i.e., you want sensible df(1)
150150
output, you are suggested to specify the following attributes:
151151
152152
- f_bsize - preferred size of file blocks, in bytes

0 commit comments

Comments
 (0)