summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-04-14 10:02:43 (GMT)
committerGeorg Brandl <georg@python.org>2013-04-14 10:02:43 (GMT)
commit1aca953a40425833f60e76bfa23df1ca89ae574e (patch)
tree8992dce054d3c3334918727606bda29a3a764d84 /Doc/library
parent1e1134a314cdf2fa3bf154d638bf2506182ca31b (diff)
downloadcpython-1aca953a40425833f60e76bfa23df1ca89ae574e.zip
cpython-1aca953a40425833f60e76bfa23df1ca89ae574e.tar.gz
cpython-1aca953a40425833f60e76bfa23df1ca89ae574e.tar.bz2
Fix example ignoring ".svn" directories in compileall.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/compileall.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/compileall.rst b/Doc/library/compileall.rst
index cb7a09c..b12c217 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::