Bug in posix implementation of django/core/files/locks.py Description
Bug in posix implementation of django/core/files/locks.py Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). The posix version of locks (the version which supports import fcntl) has a bug. The code attempts to return True to indicate success or failure acquiring a lock, but…
The task
The posix version of locks (the version which supports import fcntl) has a bug. The code attempts to return True to indicate success or failure acquiring a lock, but instead it always returns False. The reason is that cpython fcntl module returns None if successful, and raises an OSError to indicate failure (see…
Part of Lego-X/Lego-RL-SWE-Bench-Verified.