From dbecd93b7203cd187c1978de1207c29d3a9a686c Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 6 Feb 2005 06:57:08 +0000 Subject: Replace list of constants with tuples of constants. --- Lib/posixfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/posixfile.py') diff --git a/Lib/posixfile.py b/Lib/posixfile.py index ddfdb780c1..afffb66e49 100644 --- a/Lib/posixfile.py +++ b/Lib/posixfile.py @@ -182,7 +182,7 @@ class _posixfile_: 'freebsd6', 'bsdos2', 'bsdos3', 'bsdos4'): flock = struct.pack('lxxxxlxxxxlhh', \ l_start, l_len, os.getpid(), l_type, l_whence) - elif sys.platform in ['aix3', 'aix4']: + elif sys.platform in ('aix3', 'aix4'): flock = struct.pack('hhlllii', \ l_type, l_whence, l_start, l_len, 0, 0, 0) else: @@ -198,7 +198,7 @@ class _posixfile_: 'bsdos2', 'bsdos3', 'bsdos4'): l_start, l_len, l_pid, l_type, l_whence = \ struct.unpack('lxxxxlxxxxlhh', flock) - 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 = \ struct.unpack('hhlllii', flock) elif sys.platform == "linux2": -- cgit v1.2.1