From: Tarek Ziadé Date: Sun, 4 Jan 2009 10:37:52 +0000 (+0000) Subject: using clearer syntax X-Git-Tag: v2.7a1~2386 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d81780b8b0de6f0a191335da1ca1a040626bf97e;p=thirdparty%2FPython%2Fcpython.git using clearer syntax --- diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py index e10e25b37d5f..27883fd68b92 100644 --- a/Lib/distutils/command/sdist.py +++ b/Lib/distutils/command/sdist.py @@ -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)