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

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


http://hg.python.org/cpython/rev/77cc62b37f75
changeset:   83356:77cc62b37f75
branch:      2.7
parent:      83353:4678259af5a4
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
@@ -127,7 +127,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