Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0f2372

Browse files
committed
Modernized for 1.5
1 parent 6a9ee0e commit d0f2372

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

Lib/dis.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,17 @@ def jabs_op(name, op):
139139
def_op('UNARY_NEGATIVE', 11)
140140
def_op('UNARY_NOT', 12)
141141
def_op('UNARY_CONVERT', 13)
142-
def_op('UNARY_CALL', 14)
142+
143143
def_op('UNARY_INVERT', 15)
144144

145145
def_op('BINARY_POWER', 19)
146+
146147
def_op('BINARY_MULTIPLY', 20)
147148
def_op('BINARY_DIVIDE', 21)
148149
def_op('BINARY_MODULO', 22)
149150
def_op('BINARY_ADD', 23)
150151
def_op('BINARY_SUBTRACT', 24)
151152
def_op('BINARY_SUBSCR', 25)
152-
def_op('BINARY_CALL', 26)
153153

154154
def_op('SLICE+0', 30)
155155
def_op('SLICE+1', 31)
@@ -168,6 +168,7 @@ def jabs_op(name, op):
168168

169169
def_op('STORE_SUBSCR', 60)
170170
def_op('DELETE_SUBSCR', 61)
171+
171172
def_op('BINARY_LSHIFT', 62)
172173
def_op('BINARY_RSHIFT', 63)
173174
def_op('BINARY_AND', 64)
@@ -179,11 +180,12 @@ def jabs_op(name, op):
179180
def_op('PRINT_NEWLINE', 72)
180181

181182
def_op('BREAK_LOOP', 80)
182-
def_op('RAISE_EXCEPTION', 81)
183+
183184
def_op('LOAD_LOCALS', 82)
184185
def_op('RETURN_VALUE', 83)
186+
185187
def_op('EXEC_STMT', 85)
186-
def_op('BUILD_FUNCTION', 86)
188+
187189
def_op('POP_BLOCK', 87)
188190
def_op('END_FINALLY', 88)
189191
def_op('BUILD_CLASS', 89)
@@ -204,12 +206,12 @@ def jabs_op(name, op):
204206
def_op('LOAD_CONST', 100) # Index in const list
205207
hasconst.append(100)
206208
name_op('LOAD_NAME', 101) # Index in name list
207-
hascompare.append(106)
208209
def_op('BUILD_TUPLE', 102) # Number of tuple items
209210
def_op('BUILD_LIST', 103) # Number of list items
210211
def_op('BUILD_MAP', 104) # Always zero for now
211212
name_op('LOAD_ATTR', 105) # Index in name list
212213
def_op('COMPARE_OP', 106) # Comparison operator
214+
hascompare.append(106)
213215
name_op('IMPORT_NAME', 107) # Index in name list
214216
name_op('IMPORT_FROM', 108) # Index in name list
215217

@@ -221,6 +223,7 @@ def jabs_op(name, op):
221223

222224
name_op('LOAD_LOCAL', 115) # Index in name list
223225
name_op('LOAD_GLOBAL', 116) # Index in name list
226+
224227
def_op('SET_FUNC_ARGS', 117) # Argcount
225228

226229
jrel_op('SETUP_LOOP', 120) # Distance to target address

0 commit comments

Comments
 (0)