summaryrefslogtreecommitdiffstats
path: root/Lib/posixfile.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-02-06 06:57:08 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-02-06 06:57:08 (GMT)
commitdbecd93b7203cd187c1978de1207c29d3a9a686c (patch)
treeabb7331791de7b8e85208195e0c948a76cf77b67 /Lib/posixfile.py
parent07ead1731850a9f1bd353b9330341309251099b6 (diff)
downloadcpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.zip
cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.tar.gz
cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.tar.bz2
Replace list of constants with tuples of constants.
Diffstat (limited to 'Lib/posixfile.py')
-rw-r--r--Lib/posixfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py
index ddfdb78..afffb66 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":