Commit 95aa1726 authored by Georg Brandl's avatar Georg Brandl

Fix example ignoring ".svn" directories in compileall.

parent 34f5dd06
......@@ -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::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment