Fix example ignoring ".svn" directories in compileall.

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

View File

@ -127,7 +127,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::