Skip to content

Commit c789673

Browse files
author
rocky
committed
Misc lint
1 parent 35e4f46 commit c789673

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

xdis/dropbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Copyright Hagen Fritsch, 2012, License: GPL-2.0
3-
_marshal.py adpoted from pypy (MIT License)
3+
_marshal.py adapted from pypy (MIT License)
44
55
Some small modifications and adaption to xdis by Rocky Bernstein
66
"""

xdis/load.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ def load_file(filename, out=sys.stdout):
137137
return co
138138

139139

140-
def load_module(filename, code_objects=None, fast_load=False, get_code=True):
140+
def load_module(
141+
filename: str, code_objects=None, fast_load: bool = False, get_code: bool = True
142+
):
141143
"""load a module without importing it.
142144
Parameters:
143145
filename: name of file containing Python byte-code object
@@ -146,9 +148,12 @@ def load_module(filename, code_objects=None, fast_load=False, get_code=True):
146148
code_objects: list of additional code_object from this
147149
file. This might be a types.CodeType or one of
148150
the portable xdis code types, e.g. Code38, Code3,
149-
Code2, etc. This can be empty
151+
Code2, etc. This can be empty.
152+
153+
fast_load: If True, then use Python's builtin loader. This can be done only if
154+
the bytecode version matches the current bytecode interpreter.
150155
151-
get_code: bool. Parsing the code object takes a bit of
156+
get_code: Parsing the code object takes a bit of
152157
parsing time, but sometimes all you want is the
153158
module info, time string, code size, python
154159
version, etc. For that, set `get_code` to

xdis/opcodes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
"""
1717
Bytecode opcode modules with some classification
1818
of stack usage and information for formatting instructions.
19-
This covers infortationni the Python stdlib opcodes.py.
19+
This covers information from the Python stdlib opcodes.py.
2020
"""

xdis/opcodes/opcode_312.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@
139139
loc["hasname"] = [90, 91, 95, 96, 97, 98, 101, 106, 108, 109, 116, 141, 175, 262, 263, 264, 265]
140140
# new hasarg table
141141
loc.update({"hasarg": [90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110,\
142-
114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132,\
143-
133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 149, 150, 151, 152,\
144-
155, 156, 157, 162, 163, 164, 165, 171, 172, 173, 174, 175, 176, 237, 238, 239, 240, 241, 242,\
142+
114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
143+
133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 149, 150, 151, 152,
144+
155, 156, 157, 162, 163, 164, 165, 171, 172, 173, 174, 175, 176, 237, 238, 239, 240, 241, 242,
145145
243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 260, 261, 262, 263, 264, 265, 266]})
146146

147147
# new hasexc table

0 commit comments

Comments
 (0)