Skip to content

Commit f5b6bec

Browse files
committed
remove codetype init changes for 311
1 parent d145ceb commit f5b6bec

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

xdis/codetype/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,10 @@ def to_portable(
198198
co_varnames=None,
199199
co_filename=None,
200200
co_name=None,
201-
co_qualname="",
202201
co_firstlineno=-1,
203202
co_lnotab="", # 1.5+; 3.0+ this type changes from <str> to <bytes>
204-
co_exceptiontable=b'',
205-
co_freevars=(None,), # 2.0+
206-
co_cellvars=(None,), # 2.0+
203+
co_freevars=(None, ), # 2.0+
204+
co_cellvars=(None, ), # 2.0+
207205
version_triple=PYTHON_VERSION_TRIPLE,
208206
):
209207
code = CodeTypeUnion(
@@ -219,10 +217,8 @@ def to_portable(
219217
co_varnames,
220218
co_filename,
221219
co_name,
222-
co_qualname,
223220
co_firstlineno,
224221
co_lnotab,
225-
co_exceptiontable,
226222
co_freevars,
227223
co_cellvars,
228224
)

0 commit comments

Comments
 (0)