Also test pycon sections.
This commit is contained in:
parent
263ae02153
commit
58bc529a43
|
@ -18,7 +18,7 @@ for file_to_test in args.file:
|
|||
source = f.read()
|
||||
|
||||
with NamedTemporaryFile(mode="w", suffix=".py") as f:
|
||||
for example_match in re.finditer("```python.*?```", source, re.S):
|
||||
for example_match in re.finditer("```py(th|c)on.*?```", source, re.S):
|
||||
example = example_match.group()
|
||||
if "mydata.db" in example:
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue