Selaa lähdekoodia

Make pylint keep silent about our use of 'exec'

jonathanvdc 8 vuotta sitten
vanhempi
commit
f0dadade69
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      kernel/modelverse_jit/jit.py

+ 3 - 0
kernel/modelverse_jit/jit.py

@@ -53,6 +53,9 @@ class ModelverseJit(object):
 
     def try_jit(self, body_id, parameter_list):
         """Tries to jit the function defined by the given entry point id and parameter list."""
+        # The comment below makes pylint shut up about our (hopefully benign) use of exec here.
+        # pylint: disable=I0011,W0122
+
         if body_id in self.jitted_entry_points:
             # We have already compiled this function.
             raise primitive_functions.PrimitiveFinished(self.jitted_entry_points[body_id])