Browse Source

Fix test failure caused by removal of name variable in d4dd20cba641997f5e2aac3732868e1b66a192e4
This code should be rewritten to not use locals().

Mike Naberezny 11 năm trước cách đây
mục cha
commit
d271f35b11
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      supervisor/options.py

+ 2 - 0
supervisor/options.py

@@ -1315,6 +1315,8 @@ class ServerOptions(Options):
             lmin = limit['min']
             lmin = limit['min']
             res = limit['resource']
             res = limit['resource']
             msg = limit['msg']
             msg = limit['msg']
+            name = limit['name']
+            name = name # name is used below by locals()
 
 
             soft, hard = resource.getrlimit(res)
             soft, hard = resource.getrlimit(res)