summaryrefslogtreecommitdiff
path: root/django/core/files/locks.py
AgeCommit message (Collapse)Author
2024-01-26Applied Black's 2024 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/24.1.0
2023-01-26Fixed #34294 -- Protected django.core.files.locks against argtypes ↵Simon Sawicki
redefinition on Windows.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-12-02Updated various links to HTTPS and new locations.Mariusz Felisiak
Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
2020-09-15Fixed #31989 -- Fixed return value of ↵Hasan Ramezani
django.core.files.locks.lock()/unlock() on POSIX systems.
2020-07-30Bumped minimum isort version to 5.1.0.David Smith
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
2018-09-26Refs #29784 -- Switched to https:// links where available.Jon Dufresne
2017-09-13Removed unnecessary parens in various code.Mariusz Felisiak
2014-05-25Removed executeable bit from a few files.Florian Apolloner
2014-03-18Fixed regression in file locking on some platforms.smallcode
Some platforms with os.name == 'posix' do not have the fcntl module, e.g. AppEngine. refs #19373.
2014-02-08Fixed #19373 -- Ported Windows file locking from PyWin32 to ctypesKevin Christopher Henry
There wasn't any file locking under Windows unless PyWin32 was installed. This removes that (undocumented) dependency by using ctypes instead. Thanks to Anatoly Techtonik for writing the ctypes port upon which this is based.
2013-11-02More attacking E302 violatorsAlex Gaynor
2013-10-24Start attacking E231 violationsAlex Gaynor
2013-05-26Replaced `and...or...` constructs with PEP 308 conditional expressions.Ramiro Morales
2012-05-05Fixed the syntax used for the Python repl examples in docs and docstrings.Alex Gaynor
2012-05-05Made more extensive usage of context managers with open.Claude Paroz
2008-08-28Fixed #8403 -- Changed the use of fcntl.flock() to fcntl.lockf(). On someMalcolm Tredinnick
systems, this will ensure fnctl-based file locking is always used, which means locking of NFS-mounted files should work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-11Fixed #4948, a race condition in file saving. Thanks to Martin von Löwis, ↵Jacob Kaplan-Moss
who diagnosed the problem and pointed the way to a fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-01Fixed #2070: refactored Django's file upload capabilities.Jacob Kaplan-Moss
A description of the new features can be found in the new [http://www.djangoproject.com/documentation/upload_handing/ upload handling documentation]; the executive summary is that Django will now happily handle uploads of large files without issues. This changes the representation of uploaded files from dictionaries to bona fide objects; see BackwardsIncompatibleChanges for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7814 bcc190cf-cafb-0310-a4f2-bffc1f526a37