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

Skip to content

Commit 7b37e1f

Browse files
committed
fix more tests
1 parent 96085e1 commit 7b37e1f

3 files changed

Lines changed: 47 additions & 43 deletions

File tree

Lib/dis.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,17 @@ def distb(tb=None, *, file=None, show_caches=False, adaptive=False, show_offsets
151151
# list of CO_* constants. It is also used by pretty_flags to
152152
# turn the co_flags field into a human readable list.
153153
COMPILER_FLAG_NAMES = {
154-
1: "OPTIMIZED",
155-
2: "NEWLOCALS",
156-
4: "VARARGS",
157-
8: "VARKEYWORDS",
158-
16: "NESTED",
159-
32: "GENERATOR",
160-
64: "NOFREE",
161-
128: "COROUTINE",
162-
256: "ITERABLE_COROUTINE",
163-
512: "ASYNC_GENERATOR",
154+
1: "OPTIMIZED",
155+
2: "NEWLOCALS",
156+
4: "VARARGS",
157+
8: "VARKEYWORDS",
158+
16: "NESTED",
159+
32: "GENERATOR",
160+
64: "NOFREE",
161+
128: "COROUTINE",
162+
256: "ITERABLE_COROUTINE",
163+
512: "ASYNC_GENERATOR",
164+
0x4000000: "HAS_DOCSTRING",
164165
}
165166

166167
def pretty_flags(flags):

Lib/inspect.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"CO_OPTIMIZED",
5757
"CO_VARARGS",
5858
"CO_VARKEYWORDS",
59+
"CO_HAS_DOCSTRING",
5960
"ClassFoundException",
6061
"ClosureVars",
6162
"EndOfBlock",

0 commit comments

Comments
 (0)