]> granicus.if.org Git - python/commitdiff
Fix example ignoring ".svn" directories in compileall.
authorGeorg Brandl <georg@python.org>
Sun, 14 Apr 2013 10:02:43 +0000 (12:02 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 14 Apr 2013 10:02:43 +0000 (12:02 +0200)
Doc/library/compileall.rst

index cb7a09c0fb03bc8405a88dd2158ca7a53ce03bb3..b12c2173c0305185683a6e98f9bf107929921e6c 100644 (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::