Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1aca953

Browse files
committed
Fix example ignoring ".svn" directories in compileall.
1 parent 1e1134a commit 1aca953

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/compileall.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ subdirectory and all its subdirectories::
162162

163163
# Perform same compilation, excluding files in .svn directories.
164164
import re
165-
compileall.compile_dir('Lib/', rx=re.compile('/[.]svn'), force=True)
165+
compileall.compile_dir('Lib/', rx=re.compile(r'[/\\][.]svn'), force=True)
166166

167167

168168
.. seealso::

0 commit comments

Comments
 (0)