diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2021-04-21 11:41:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 11:41:19 (GMT) |
commit | b0544ba77cf86074fb1adde00558c67ca75eeea1 (patch) | |
tree | 5168d0dc8da1360feabecfbc7c721b3fa9a38b11 /Lib/test/test_dis.py | |
parent | d35eef3b904b62e9c775bf3764ab0a0611f5a860 (diff) | |
download | cpython-b0544ba77cf86074fb1adde00558c67ca75eeea1.zip cpython-b0544ba77cf86074fb1adde00558c67ca75eeea1.tar.gz cpython-b0544ba77cf86074fb1adde00558c67ca75eeea1.tar.bz2 |
bpo-38605: Revert making 'from __future__ import annotations' the default (GH-25490)
This reverts commits 044a1048ca93d466965afc027b91a5a9eb9ce23c and 1be456ae9d53bb1cba2b24fc86175c282d1c2169, adapting the code to changes that happened after it.
Diffstat (limited to 'Lib/test/test_dis.py')
-rw-r--r-- | Lib/test/test_dis.py | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index 19e5c0f..8e36ae2 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -237,26 +237,28 @@ dis_annot_stmt_str = """\ 2 0 SETUP_ANNOTATIONS 2 LOAD_CONST 0 (1) 4 STORE_NAME 0 (x) - 6 LOAD_CONST 1 ('int') - 8 LOAD_NAME 1 (__annotations__) - 10 LOAD_CONST 2 ('x') + 6 LOAD_NAME 1 (int) + 8 LOAD_NAME 2 (__annotations__) + 10 LOAD_CONST 1 ('x') 12 STORE_SUBSCR - 3 14 LOAD_CONST 3 ('fun(1)') - 16 LOAD_NAME 1 (__annotations__) - 18 LOAD_CONST 4 ('y') - 20 STORE_SUBSCR - - 4 22 LOAD_CONST 0 (1) - 24 LOAD_NAME 2 (lst) - 26 LOAD_NAME 3 (fun) - 28 LOAD_CONST 5 (0) - 30 CALL_FUNCTION 1 - 32 STORE_SUBSCR - 34 LOAD_NAME 4 (int) - 36 POP_TOP - 38 LOAD_CONST 6 (None) - 40 RETURN_VALUE + 3 14 LOAD_NAME 3 (fun) + 16 LOAD_CONST 0 (1) + 18 CALL_FUNCTION 1 + 20 LOAD_NAME 2 (__annotations__) + 22 LOAD_CONST 2 ('y') + 24 STORE_SUBSCR + + 4 26 LOAD_CONST 0 (1) + 28 LOAD_NAME 4 (lst) + 30 LOAD_NAME 3 (fun) + 32 LOAD_CONST 3 (0) + 34 CALL_FUNCTION 1 + 36 STORE_SUBSCR + 38 LOAD_NAME 1 (int) + 40 POP_TOP + 42 LOAD_CONST 4 (None) + 44 RETURN_VALUE """ compound_stmt_str = """\ |