Skip to content

Commit c46bcf3

Browse files
committed
Remove trailing space in python source
1 parent 08ad2bc commit c46bcf3

5 files changed

Lines changed: 20 additions & 20 deletions

File tree

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/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()) + " >"

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import os
1414
import sys
1515

16-
from fuseparts import __version__
16+
from fuseparts import __version__
1717

1818
classifiers = [ "Development Status :: 5 - Production/Stable",
1919
"Intended Audience :: Developers",
@@ -51,7 +51,7 @@
5151
else:
5252
if os.system('pkg-config --help 2> /dev/null') == 0:
5353
print("""pkg-config could not find fuse:
54-
you might need to adjust PKG_CONFIG_PATH or your
54+
you might need to adjust PKG_CONFIG_PATH or your
5555
FUSE installation is very old (older than 2.1-pre1)""")
5656

5757
else:

0 commit comments

Comments
 (0)