Skip to content

Commit 9cdfb47

Browse files
author
rocky
committed
Correct set vs. frozenset unmarshal code type
Also, don't isort tests. Add a source code for a test that we have bytecode for.
1 parent 5bd528c commit 9cdfb47

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ repos:
88
- id: debug-statements
99
stages: [pre-commit]
1010
- id: end-of-file-fixer
11-
exclude: '^pytest/testdata'
11+
exclude: '^pytest/testdata|^test/simple_source'
1212
stages: [pre-commit]
1313
- repo: https://github.com/pycqa/isort
1414
rev: 5.13.2
1515
hooks:
1616
- id: isort
17+
exclude: '^pytest/testdata|^test/simple_source'
1718
stages: [pre-commit]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Bug from Python 3.3 _markupbase.py cross compilatin
2+
# error in unmarshaling a frozenset
3+
import sys
4+
if sys.argv[0] in frozenset({"attlist", "linktype", "link", "element"}):
5+
print("Yep")

xdis/unmarshal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def long(n: int) -> LongTypeForPython3:
8383
")": "small_tuple",
8484
"(": "tuple",
8585
"[": "list",
86-
"<": "frozenset",
87-
">": "set",
86+
"<": "set",
87+
">": "frozenset",
8888
"{": "dict",
8989
"R": "python2_string_reference",
9090
"c": "code",

0 commit comments

Comments
 (0)