Fix example ignoring ".svn" directories in compileall.

This commit is contained in:
Georg Brandl 2013-04-14 12:02:43 +02:00
parent 1e1134a314
commit 1aca953a40
1 changed files with 1 additions and 1 deletions

View File

@ -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::