Release coccinelle-0.2.3rc3
[bpt/coccinelle.git] / python / yes_pycocci.ml
index fa753e9..f47db46 100644 (file)
@@ -224,7 +224,7 @@ let build_variable name value =
   check_int_return_value
     (pydict_setitemstring(pymodule_getdict mx, name, value))
 
-let contains_binding e (_,(r,m)) =
+let contains_binding e (_,(r,m),_) =
   try
     let _ = List.find (function ((re, rm), _) -> r =*= re && m =$= rm) e in
     true
@@ -250,7 +250,7 @@ let construct_variables mv e =
       (pytuple_fromsingle (str))
   in
 
-  List.iter (function (py,(r,m)) ->
+  List.iter (function (py,(r,m),_) ->
     match find_binding (r,m) with
       None -> ()
     | Some (_, Ast_c.MetaExprVal (expr,_)) ->