summaryrefslogtreecommitdiffstats
path: root/Lib/posixfile.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-15 00:50:52 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-01-15 00:50:52 (GMT)
commit2344fae6d003f5a5dde8016e1d2310e161288708 (patch)
tree296a67c9d61f6f0a32796e7404e71fdf7d1a1fd2 /Lib/posixfile.py
parentfa25a7d51fdc4c21ac569d9f62825e337a7a6b4a (diff)
downloadcpython-2344fae6d003f5a5dde8016e1d2310e161288708.zip
cpython-2344fae6d003f5a5dde8016e1d2310e161288708.tar.gz
cpython-2344fae6d003f5a5dde8016e1d2310e161288708.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/posixfile.py')
-rw-r--r--Lib/posixfile.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py
index 23f2c85..58c4b4f 100644
--- a/Lib/posixfile.py
+++ b/Lib/posixfile.py
@@ -129,7 +129,7 @@ class _posixfile_:
l_flags = fcntl.fcntl(file.fileno(), FCNTL.F_SETFL, l_flags)
- if 'c' in which:
+ if 'c' in which:
arg = ('!' not in which) # 0 is don't, 1 is do close on exec
l_flags = fcntl.fcntl(file.fileno(), FCNTL.F_SETFD, arg)
@@ -142,7 +142,7 @@ class _posixfile_:
if FCNTL.O_NDELAY & l_flags: which = which + 'n'
if FCNTL.O_SYNC & l_flags: which = which + 's'
return which
-
+
def lock(self, how, *args):
import struct, fcntl, FCNTL
@@ -176,7 +176,7 @@ class _posixfile_:
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
'bsdos2', 'bsdos3', 'bsdos4'):
flock = struct.pack('lxxxxlxxxxlhh', \
- l_start, l_len, os.getpid(), l_type, l_whence)
+ l_start, l_len, os.getpid(), l_type, l_whence)
elif sys.platform in ['aix3', 'aix4']:
flock = struct.pack('hhlllii', \
l_type, l_whence, l_start, l_len, 0, 0, 0)