about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--miasm2/core/asmblock.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/miasm2/core/asmblock.py b/miasm2/core/asmblock.py
index 97113be1..8d6456e0 100644
--- a/miasm2/core/asmblock.py
+++ b/miasm2/core/asmblock.py
@@ -600,8 +600,12 @@ class AsmCFG(DiGraph):
         return self._pendings
 
     def label2block(self, loc_key):
-        """Return the block corresponding to loc_key @loc_key
-        @loc_key: LocKey instance"""
+        """
+        DEPRECATED: Use "loc_key_to_block" instead of "label2block"
+
+        Return the block corresponding to loc_key @loc_key
+        @loc_key: LocKey instance
+        """
         warnings.warn('DEPRECATION WARNING: use "loc_key_to_block" instead of "label2block"')
         return self.loc_key_to_block(loc_key)