Commit 6d66c001 authored by Tarek Ziadé's avatar Tarek Ziadé

Merged revisions 68293 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68293 | tarek.ziade | 2009-01-04 11:37:52 +0100 (Sun, 04 Jan 2009) | 1 line

  using clearer syntax
........
parent dea3bab1
...@@ -358,8 +358,13 @@ class sdist (Command): ...@@ -358,8 +358,13 @@ class sdist (Command):
# pruning out vcs directories # pruning out vcs directories
# both separators are used under win32 # both separators are used under win32
seps = sys.platform == 'win32' and r'/|\\' or '/' if sys.platform == 'win32':
vcs_dirs = ['RCS', 'CVS', '\.svn', '\.hg', '\.git', '\.bzr', '_darcs'] seps = r'/|\\'
else:
seps = '/'
vcs_dirs = ['RCS', 'CVS', r'\.svn', r'\.hg', r'\.git', r'\.bzr',
'_darcs']
vcs_ptrn = r'(^|%s)(%s)(%s).*' % (seps, '|'.join(vcs_dirs), seps) vcs_ptrn = r'(^|%s)(%s)(%s).*' % (seps, '|'.join(vcs_dirs), seps)
self.filelist.exclude_pattern(vcs_ptrn, is_regex=1) self.filelist.exclude_pattern(vcs_ptrn, is_regex=1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment