diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-04-03 10:16:25 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-04-03 11:56:59 +0200 |
| commit | 95b24655c797f5b4f96c8834ad6ef2f21748699c (patch) | |
| tree | a1983268549523fcc94376ee53ebfa4cb2c42f42 /miasm/core/parse_asm.py | |
| parent | 1d5127036dc7e1688c102c5781a6618b5dd27f16 (diff) | |
| download | focaccia-miasm-95b24655c797f5b4f96c8834ad6ef2f21748699c.tar.gz focaccia-miasm-95b24655c797f5b4f96c8834ad6ef2f21748699c.zip | |
Use int(expr) instead of expr.arg.arg
Diffstat (limited to 'miasm/core/parse_asm.py')
| -rw-r--r-- | miasm/core/parse_asm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm/core/parse_asm.py b/miasm/core/parse_asm.py index 2b4f1195..b742a2d2 100644 --- a/miasm/core/parse_asm.py +++ b/miasm/core/parse_asm.py @@ -65,7 +65,7 @@ def guess_next_new_label(loc_db): """Generate a new label @loc_db: the LocationDB instance""" i = 0 - gen_name = b"loc_%.8X" + gen_name = "loc_%.8X" while True: name = gen_name % i label = loc_db.get_name_location(name) @@ -121,7 +121,7 @@ def parse_txt(mnemo, attrib, txt, loc_db=None): # label beginning with .L match_re = LABEL_RE.match(line) if match_re: - label_name = match_re.group(1).encode() + label_name = match_re.group(1) label = loc_db.get_or_create_name_location(label_name) lines.append(label) continue |