Skip to content

Commit 69351e3

Browse files
authored
Merge pull request #65 from glensc/ws
Remove trailing space on files
2 parents 6c2732f + f5fec33 commit 69351e3

12 files changed

Lines changed: 46 additions & 46 deletions

File tree

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ such a program is covered only if its contents constitute a work based
146146
on the Library (independent of the use of the Library in a tool for
147147
writing it). Whether that is true depends on what the Library does
148148
and what the program that uses the Library does.
149-
149+
150150
1. You may copy and distribute verbatim copies of the Library's
151151
complete source code as you receive it, in any medium, provided that
152152
you conspicuously and appropriately publish on each copy an

FAQ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Solutions:
2323

2424
* Enforce the usage of a stabilized API (practically, API 25) with::
2525

26-
env CFLAGS=-DFUSE_USE_VERSION=25 python setup.py build
26+
env CFLAGS=-DFUSE_USE_VERSION=25 python setup.py build
2727

2828
* Upgrade your FUSE installation. As of writing this, 2.6.0-pre3 is available.
2929

30-
When I use a dedicated file class, how can I tell apart the cases when an instance of it is instantiated from a ``CREATE`` callback and when it's instantiated from an ``OPEN`` callback?
30+
When I use a dedicated file class, how can I tell apart the cases when an instance of it is instantiated from a ``CREATE`` callback and when it's instantiated from an ``OPEN`` callback?
3131
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3232

3333
If your file class is instantiated via ``FUSE_OPEN``, then it's

INSTALL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ REQUIREMENTS:
33
- In general, Python 2.3 or newer.
44
Version specific notes:
55
- 2.4: this is the version the code is developed with, so you can
6-
expect this one to work the most smoothly.
7-
- 2.3: in general, it seems to be useable. However, the optparse
6+
expect this one to work the most smoothly.
7+
- 2.3: in general, it seems to be useable. However, the optparse
88
module of Python 2.3 is out of date. This doesn't have fatal
99
consequences, but if you want nice help optput / version info,
1010
you should either use optparse.py from 2.4 or install a recent

README.historic

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ Updated 13-Dec-2003 by David McNab <david@rebirthing.co.nz>
3737

3838
- added 'code.leo' file for convenience of those who use the Leo
3939
code editor (leo.sf.net)
40-
40+
4141
- added support for 'statfs' and 'fsync' methods (refer xmp.py)
4242

4343
Updated Dec 2003 by David McNab <david@rebirthing.co.nz>:
44-
44+
4545
- added support for 'release' events (ie when file gets closed)
4646
- added __init__ to base class, which picks off parameters and
4747
stores them as instance attributes:

README.new_fusepy_api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Let's see how these are implemented.
111111
out of Python's, so raising an exception makes no sense. We could
112112
wrap some fs methods into format valifiers; currently we don't do
113113
that.)
114-
114+
115115
116116
FUSE and the command line
117117
-------------------------
@@ -316,7 +316,7 @@ options (which are not understood by the lib, according to the help
316316
message), and also purges out these from self, so the remainder can be
317317
safely passed down to FUSE.
318318

319-
.. [#] We can argue that it's not that sad. We just pass on to FUSE
319+
.. [#] We can argue that it's not that sad. We just pass on to FUSE
320320
what we get from the user and that either eats it or blows up. Why
321321
would we want more sophistication?
322322

example/_find_fuse_parts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
ddd = realpath(join(dirname(sys.argv[0]), '..'))
88

9-
for d in [ddd, '.']:
9+
for d in [ddd, '.']:
1010
for p in glob.glob(join(d, 'build', 'lib.*%s' % PYTHON_MAJOR_MINOR)):
1111
sys.path.insert(0, p)
1212

example/xmp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def utime(self, path, times):
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
113113
# sub-second preciseness in access/modify times.
114-
#
114+
#
115115
# def utimens(self, path, ts_acc, ts_mod):
116116
# os.utime("." + path, (ts_acc.tv_sec, ts_mod.tv_sec))
117117

@@ -229,11 +229,11 @@ def lock(self, cmd, owner, **kw):
229229
# Advisory file locking is pretty messy in Unix, and the Python
230230
# interface to this doesn't make it better.
231231
# We can't do fcntl(2)/F_GETLK from Python in a platfrom independent
232-
# way. The following implementation *might* work under Linux.
232+
# way. The following implementation *might* work under Linux.
233233
#
234234
# if cmd == fcntl.F_GETLK:
235235
# import struct
236-
#
236+
#
237237
# lockdata = struct.pack('hhQQi', kw['l_type'], os.SEEK_SET,
238238
# kw['l_start'], kw['l_len'], kw['l_pid'])
239239
# ld2 = fcntl.fcntl(self.fd, fcntl.F_GETLK, lockdata)
@@ -242,7 +242,7 @@ def lock(self, cmd, owner, **kw):
242242
# res = {}
243243
# for i in xrange(len(uld2)):
244244
# res[flockfields[i]] = uld2[i]
245-
#
245+
#
246246
# return fuse.Flock(**res)
247247

248248
# Convert fcntl-ish lock parameters to Python's weird

fuse.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -454,34 +454,34 @@ def __init__(self, name, **kw):
454454
class Flock(FuseStruct):
455455
"""
456456
Class for representing flock structures (cf. fcntl(3)).
457-
457+
458458
It makes sense to give values to the `l_type`, `l_start`,
459459
`l_len`, `l_pid` attributes (`l_whence` is not used by
460460
FUSE, see ``fuse.h``).
461461
"""
462462

463463
def __init__(self, name=None, **kw):
464-
464+
465465
self.l_type = None
466466
self.l_start = None
467467
self.l_len = None
468468
self.l_pid = None
469-
469+
470470
kw['name'] = name
471471
FuseStruct.__init__(self, **kw)
472472

473-
473+
474474
class Timespec(FuseStruct):
475475
"""
476476
Cf. struct timespec in time.h:
477477
http://www.opengroup.org/onlinepubs/009695399/basedefs/time.h.html
478478
"""
479479

480480
def __init__(self, name=None, **kw):
481-
481+
482482
self.tv_sec = None
483483
self.tv_nsec = None
484-
484+
485485
kw['name'] = name
486486
FuseStruct.__init__(self, **kw)
487487

@@ -664,13 +664,13 @@ def __init__(self, *args, **kw):
664664
raise RuntimeError(__name__ + """.fuse_python_api not defined.
665665
666666
! Please define """ + __name__ + """.fuse_python_api internally (eg.
667-
!
667+
!
668668
! (1) """ + __name__ + """.fuse_python_api = """ + repr(FUSE_PYTHON_API_VERSION) + """
669-
!
670-
! ) or in the enviroment (eg.
671-
!
669+
!
670+
! ) or in the enviroment (eg.
671+
!
672672
! (2) FUSE_PYTHON_API=0.1
673-
!
673+
!
674674
! ).
675675
!
676676
! If you are actually developing a filesystem, probably (1) is the way to go.
@@ -684,7 +684,7 @@ def malformed():
684684
malformed()
685685
for i in fuse_python_api:
686686
if not isinstance(i, int) or i < 0:
687-
malformed()
687+
malformed()
688688

689689
if fuse_python_api > FUSE_PYTHON_API_VERSION:
690690
raise RuntimeError("""

fuseparts/_fusemodule.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,11 @@ releasedir_func(const char *path, struct fuse_file_info *fi)
407407
PROLOGUE(
408408
fi_to_py(fi) ?
409409
#ifdef FIX_PATH_DECODING
410-
PyObject_CallFunction(releasedir_cb, "O&N", &Path_AsDecodedUnicode, path,
410+
PyObject_CallFunction(releasedir_cb, "O&N", &Path_AsDecodedUnicode, path,
411411
fi_to_py(fi)) :
412412
PyObject_CallFunction(releasedir_cb, "O&", &Path_AsDecodedUnicode, path)
413413
#else
414-
PyObject_CallFunction(releasedir_cb, "sN", path,
414+
PyObject_CallFunction(releasedir_cb, "sN", path,
415415
fi_to_py(fi)) :
416416
PyObject_CallFunction(releasedir_cb, "s", path)
417417
#endif
@@ -450,11 +450,11 @@ dir_add_entry(PyObject *v, fuse_dirh_t buf, fuse_dirfil_t df)
450450
fetchattr(&offs, offset);
451451

452452
if (!(pytmp = PyObject_GetAttrString(v, "name")))
453-
goto OUT_DECREF;
453+
goto OUT_DECREF;
454454
if (!PyString_Check(pytmp)) {
455455
Py_DECREF(pytmp);
456-
goto OUT_DECREF;
457-
}
456+
goto OUT_DECREF;
457+
}
458458

459459
char *s;
460460
PATH_AS_STR_BEGIN(pytmp, s);
@@ -678,7 +678,7 @@ read_func(const char *path, char *buf, size_t s, off_t off)
678678

679679

680680
#if PY_MAJOR_VERSION >= 3
681-
Py_buffer buffer;
681+
Py_buffer buffer;
682682

683683
if(PyObject_CheckBuffer(v)) {
684684
PyObject_GetBuffer(v, &buffer, PyBUF_SIMPLE);
@@ -1436,7 +1436,7 @@ Fuse_main(PyObject *self, PyObject *args, PyObject *kw)
14361436
return(NULL);
14371437
}
14381438

1439-
fargv = malloc(fargc * sizeof(char *));
1439+
fargv = malloc(fargc * sizeof(char *));
14401440
if (!fargv)
14411441
return(PyErr_NoMemory());
14421442
#ifdef FIX_PATH_DECODING
@@ -1448,7 +1448,7 @@ Fuse_main(PyObject *self, PyObject *args, PyObject *kw)
14481448
if (fargseq) {
14491449
for (i=0; i < fargc; i++) {
14501450
PyObject *pa;
1451-
1451+
14521452
pa = PySequence_GetItem(fargseq, i);
14531453
if (!PyString_Check(pa)) {
14541454
Py_DECREF(pa);
@@ -1517,7 +1517,7 @@ Fuse_main(PyObject *self, PyObject *args, PyObject *kw)
15171517
}
15181518

15191519
#if FUSE_VERSION >= 26
1520-
fuse_teardown(fuse, fmp);
1520+
fuse_teardown(fuse, fmp);
15211521
#elif FUSE_VERSION >= 22
15221522
fuse_teardown(fuse, fd, fmp);
15231523
#else
@@ -1528,7 +1528,7 @@ Fuse_main(PyObject *self, PyObject *args, PyObject *kw)
15281528
PyErr_SetString(Py_FuseError, "service loop failed");
15291529

15301530
return (NULL);
1531-
}
1531+
}
15321532

15331533
Py_INCREF(Py_None);
15341534
return Py_None;
@@ -1580,15 +1580,15 @@ FuseGetContext(PyObject *self, PyObject *args)
15801580
return(NULL);
15811581

15821582
num = PyInt_FromLong(fc->uid);
1583-
PyDict_SetItemString(ret, "uid", num);
1583+
PyDict_SetItemString(ret, "uid", num);
15841584
Py_XDECREF( num );
15851585

15861586
num = PyInt_FromLong(fc->gid);
1587-
PyDict_SetItemString(ret, "gid", num);
1587+
PyDict_SetItemString(ret, "gid", num);
15881588
Py_XDECREF( num );
15891589

15901590
num = PyInt_FromLong(fc->pid);
1591-
PyDict_SetItemString(ret, "pid", num);
1591+
PyDict_SetItemString(ret, "pid", num);
15921592
Py_XDECREF( num );
15931593

15941594
return(ret);

fuseparts/subbedopts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _str_core(self):
3535

3636
ra = (list(self.optlist) + sa) or ["(none)"]
3737
ra.sort()
38-
return ra
38+
return ra
3939

4040
def __str__(self):
4141
return "< opts: " + ", ".join(self._str_core()) + " >"

0 commit comments

Comments
 (0)