From: Georg Brandl Date: Sun, 14 Apr 2013 10:02:43 +0000 (+0200) Subject: Fix example ignoring ".svn" directories in compileall. X-Git-Tag: v3.3.2~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1aca953a40425833f60e76bfa23df1ca89ae574e;p=thirdparty%2FPython%2Fcpython.git Fix example ignoring ".svn" directories in compileall. --- diff --git a/Doc/library/compileall.rst b/Doc/library/compileall.rst index cb7a09c0fb03..b12c2173c030 100644 --- a/Doc/library/compileall.rst +++ b/Doc/library/compileall.rst @@ -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::