From 1e338aa0e68c30ff68b95bfbb27230923a4d0931 Mon Sep 17 00:00:00 2001 From: Alexandre Garnier Date: Tue, 23 Aug 2016 15:03:27 +0200 Subject: [PATCH] Really fix python 2.4 compatibility PR #1544 didn't remove the keyword argument 'delete' not existing in `tempfile.NamedTemporaryFile()` in python 2.4 --- system/pam_limits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pam_limits.py b/system/pam_limits.py index 8e6bdbe9695..bd129c5817f 100644 --- a/system/pam_limits.py +++ b/system/pam_limits.py @@ -154,7 +154,7 @@ def main(): message = '' f = open (limits_conf, 'r') # Tempfile - nf = tempfile.NamedTemporaryFile(delete = False) + nf = tempfile.NamedTemporaryFile() found = False new_value = value