diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-10-12 08:04:50 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-10-12 08:04:50 +0200 |
| commit | 34b467096e3502e4f5e5007de907beaa0952ee3b (patch) | |
| tree | 61e7ed30918489bdbb87b81861763cd3efa8cd7c | |
| parent | 3cd3675165cd96c030401fbb1e6392898507a71b (diff) | |
| download | miasm-34b467096e3502e4f5e5007de907beaa0952ee3b.tar.gz miasm-34b467096e3502e4f5e5007de907beaa0952ee3b.zip | |
Asmblock: deprecate label2block
| -rw-r--r-- | miasm2/core/asmblock.py | 8 |
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) |