Python: Fix recommended module for deprecated posixfile

$ python2 -W default -c 'import posixfile'
-c:1: DeprecationWarning: The posixfile module is deprecated; fcntl.lockf() provides better locking

https://docs.python.org/2.7/library/posixfile.html
This commit is contained in:
Rasmus Wriedt Larsen
2020-01-28 16:43:45 +01:00
parent 6c7cddf258
commit 4ca72de4cd
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ import python
* and module `instead` should be used instead (or `instead = "no replacement"`)
*/
predicate deprecated_module(string name, string instead, int major, int minor) {
name = "posixfile" and instead = "email" and major = 1 and minor = 5
name = "posixfile" and instead = "fcntl" and major = 1 and minor = 5
or
name = "gopherlib" and instead = "no replacement" and major = 2 and minor = 5
or