]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix stupid typo: r->RDLK
authorGuido van Rossum <guido@python.org>
Thu, 10 Aug 1995 19:38:36 +0000 (19:38 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 10 Aug 1995 19:38:36 +0000 (19:38 +0000)
Lib/posixfile.py

index 8036b9d9bf65e0994b4d894e5de406448ba72627..459cd520784eef1363233e6d8ba1a8a55731cbd4 100644 (file)
@@ -153,7 +153,7 @@ class _posixfile_:
        import struct, fcntl, FCNTL
 
        if 'w' in how: l_type = FCNTL.F_WRLCK
-       elif 'r' in how: l_type = FCNTL.F_WRLCK
+       elif 'r' in how: l_type = FCNTL.F_RDLCK
        elif 'u' in how: l_type = FCNTL.F_UNLCK
        else: raise TypeError, 'no type of lock specified'