File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def readUntilAfter(self, pattern):
119
119
def get_regexp (self , pattern , match_from = False ):
120
120
result = None
121
121
# strings are converted to regexp
122
- if isinstance (pattern , self . __six . string_types ) and pattern != "" :
122
+ if isinstance (pattern , str ) and pattern != "" :
123
123
result = re .compile (pattern )
124
124
elif pattern is not None :
125
125
result = re .compile (pattern .pattern )
Original file line number Diff line number Diff line change 46
46
_unicodeEscapeOrCodePoint = six .u (r"\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}" )
47
47
48
48
_identifierStart = (
49
- six . u ( "(?:" )
49
+ "(?:"
50
50
+ _unicodeEscapeOrCodePoint
51
- + six . u ( "|[" )
51
+ + "|["
52
52
+ _baseASCIIidentifierStartChars
53
53
+ _nonASCIIidentifierStartChars
54
- + six . u ( "])" )
54
+ + "])"
55
55
)
56
56
_identifierChars = (
57
- six . u ( "(?:" )
57
+ "(?:"
58
58
+ _unicodeEscapeOrCodePoint
59
- + six . u ( "|[" )
59
+ + "|["
60
60
+ _baseASCIIidentifierChars
61
61
+ _nonASCIIidentifierStartChars
62
62
+ _nonASCIIidentifierChars
63
- + six . u ( "])*" )
63
+ + "])*"
64
64
)
65
65
66
66
identifier = re .compile (_identifierStart + _identifierChars )
67
67
68
68
identifierStart = re .compile (_identifierStart )
69
69
identifierMatch = re .compile (
70
- six . u ( "(?:" )
70
+ "(?:"
71
71
+ _unicodeEscapeOrCodePoint
72
- + six . u ( "|[" )
72
+ + "|["
73
73
+ _baseASCIIidentifierChars
74
74
+ _nonASCIIidentifierStartChars
75
75
+ _nonASCIIidentifierChars
76
- + six . u ( "])+" )
76
+ + "])+"
77
77
)
78
78
79
79
_nonASCIIwhitespace = re .compile (
You can’t perform that action at this time.
0 commit comments