Skip to content

Commit 21c90d5

Browse files
committed
Fix re module constant stubs for 2.7.
ASCII doesn't exist in 2.7, but UNICODE and TEMPLATE do.
1 parent 2c4549f commit 21c90d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stdlib/2.7/re.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ from typing import (
1010
)
1111

1212
# ----- re variables and constants -----
13-
A = 0
14-
ASCII = 0
1513
DEBUG = 0
1614
I = 0
1715
IGNORECASE = 0
@@ -23,6 +21,10 @@ S = 0
2321
DOTALL = 0
2422
X = 0
2523
VERBOSE = 0
24+
U = 0
25+
UNICODE = 0
26+
T = 0
27+
TEMPLATE = 0
2628

2729
class error(Exception): ...
2830

0 commit comments

Comments
 (0)