Skip to content

Commit f53adb3

Browse files
author
rocky
committed
Small stuff...
opcode_311.py: define opcode_extended_fmt opcode_34.py: use a *copy* of opcde_arg_fmt33.
1 parent 398808d commit f53adb3

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

xdis/opcodes/opcode_311.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def format_BINARY_OP(arg) -> str:
260260
},
261261
}
262262

263-
opcode_extended_fmt311 = {
263+
opcode_extended_fmt = opcode_extended_fmt311 = {
264264
**opcode_extended_fmt310,
265265
**{
266266
"BINARY_OP": extended_format_BINARY_OP,

xdis/opcodes/opcode_34.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
# (C) Copyright 2017, 2020-2021, 2023 by Rocky Bernstein
1+
# (C) Copyright 2017, 2020-2021, 2023, 2025 by Rocky Bernstein
2+
3+
# This program is free software; you can redistribute it and/or
4+
# modify it under the terms of the GNU General Public License
5+
# as published by the Free Software Foundation; either version 2
6+
# of the License, or (at your option) any later version.
7+
#
8+
# This program is distributed in the hope that it will be useful,
9+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
# GNU General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU General Public License
14+
# along with this program; if not, write to the Free Software
15+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
216
"""
317
CPython 3.4 bytecode opcodes
418
@@ -25,7 +39,7 @@
2539
free_op(loc, "LOAD_CLASSDEREF", 148)
2640
# fmt: on
2741

28-
opcode_arg_fmt = opcode_arg_fmt34 = opcode_arg_fmt33
42+
opcode_arg_fmt = opcode_arg_fmt34 = opcode_arg_fmt33.copy()
2943
opcode_extended_fmt = opcode_extended_fmt34 = opcode_extended_fmt33
3044

3145
update_pj3(globals(), loc)

0 commit comments

Comments
 (0)