Kaydet (Commit) ba885ffa authored tarafından Guido van Rossum's avatar Guido van Rossum

Added linux2 specific code :-(

üst 5f8ea10b
...@@ -196,6 +196,9 @@ class _posixfile_: ...@@ -196,6 +196,9 @@ class _posixfile_:
elif sys.platform in ['aix3', 'aix4']: elif sys.platform in ['aix3', 'aix4']:
l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \ l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \
struct.unpack('hhlllii', flock) 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: else:
l_type, l_whence, l_start, l_len, l_sysid, l_pid = \ l_type, l_whence, l_start, l_len, l_sysid, l_pid = \
struct.unpack('hhllhh', flock) struct.unpack('hhllhh', flock)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment