[Python-checkins] cpython (3.3): Fix example ignoring ".svn" directories in compileall.

georg.brandl python-checkins at python.org
Sun Apr 14 12:02:44 CEST 2013


http://hg.python.org/cpython/rev/ca5fc67e0ad1
changeset:   83357:ca5fc67e0ad1
branch:      3.3
parent:      83354:1d4ba14cc505
user:        Georg Brandl <georg at python.org>
date:        Sun Apr 14 12:02:43 2013 +0200
summary:
  Fix example ignoring ".svn" directories in compileall.

files:
  Doc/library/compileall.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/compileall.rst b/Doc/library/compileall.rst
--- a/Doc/library/compileall.rst
+++ b/Doc/library/compileall.rst
@@ -162,7 +162,7 @@
 
    # 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::

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list