diff options
author | Guido van Rossum <guido@python.org> | 1996-09-10 17:40:16 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-09-10 17:40:16 +0000 |
commit | ca687987a98a6e7c7670c383f77427f41d265a6f (patch) | |
tree | 3ec0ebd898a9c0ee0b59bcae7c3742a1a3a81339 /Lib/posixfile.py | |
parent | a5a7077aba483f9620d5bd124e01e13b74461aec (diff) | |
download | cpython-ca687987a98a6e7c7670c383f77427f41d265a6f.tar.gz |
Added linux2 specific code :-(
Diffstat (limited to 'Lib/posixfile.py')
-rw-r--r-- | Lib/posixfile.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py index f0df5433aa..fc5f53fe2c 100644 --- a/Lib/posixfile.py +++ b/Lib/posixfile.py @@ -196,6 +196,9 @@ class _posixfile_: elif sys.platform in ['aix3', 'aix4']: l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \ struct.unpack('hhlllii', flock) + elif sys.platform == "linux2": + l_type, l_whence, l_start, l_len, l_pid, l_sysid = \ + struct.unpack('hhllhh', flock) else: l_type, l_whence, l_start, l_len, l_sysid, l_pid = \ struct.unpack('hhllhh', flock) |