Show More
@@ -1188,7 +1188,16 b' MAX_RE_SIZE = 20000' | |||
|
1188 | 1188 | |
|
1189 | 1189 | def _buildregexmatch(kindpats, globsuffix): |
|
1190 | 1190 | """Build a match function from a list of kinds and kindpats, |
|
1191 |
return regexp string and a matcher function. |
|
|
1191 | return regexp string and a matcher function. | |
|
1192 | ||
|
1193 | Test too large input | |
|
1194 | >>> _buildregexmatch([ | |
|
1195 | ... ('relglob', '?' * MAX_RE_SIZE, '') | |
|
1196 | ... ], '$') | |
|
1197 | Traceback (most recent call last): | |
|
1198 | ... | |
|
1199 | OverflowError | |
|
1200 | """ | |
|
1192 | 1201 | try: |
|
1193 | 1202 | regex = '(?:%s)' % '|'.join([_regex(k, p, globsuffix) |
|
1194 | 1203 | for (k, p, s) in kindpats]) |
General Comments 0
You need to be logged in to leave comments.
Login now