Kaydet (Commit) d81780b8 authored tarafından Tarek Ziadé's avatar Tarek Ziadé

using clearer syntax

üst 516144fe
......@@ -358,8 +358,13 @@ class sdist (Command):
# pruning out vcs directories
# both separators are used under win32
seps = sys.platform == 'win32' and r'/|\\' or '/'
vcs_dirs = ['RCS', 'CVS', '\.svn', '\.hg', '\.git', '\.bzr', '_darcs']
if sys.platform == 'win32':
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)
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