mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Fix example ignoring ".svn" directories in compileall.
This commit is contained in:
parent
1e1134a314
commit
1aca953a40
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ subdirectory and all its subdirectories::
|
|||
|
||||
# Perform same compilation, excluding files in .svn directories.
|
||||
import re
|
||||
compileall.compile_dir('Lib/', rx=re.compile('/[.]svn'), force=True)
|
||||
compileall.compile_dir('Lib/', rx=re.compile(r'[/\\][.]svn'), force=True)
|
||||
|
||||
|
||||
.. seealso::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue