mirror of
https://github.com/python/cpython.git
synced 2025-01-18 22:44:57 +08:00
Fix example ignoring ".svn" directories in compileall.
This commit is contained in:
parent
1e1134a314
commit
1aca953a40
@ -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…
Reference in New Issue
Block a user