diff options
| author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-01-04 10:37:52 (GMT) |
|---|---|---|
| committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-01-04 10:37:52 (GMT) |
| commit | d81780b8b0de6f0a191335da1ca1a040626bf97e (patch) | |
| tree | 25d6a964a6abb1036bc1b2cfae8b1e4128d04acf /Lib/distutils/command/sdist.py | |
| parent | 516144fef73e76a4530c9e142e9169e23674c1ff (diff) | |
| download | cpython-d81780b8b0de6f0a191335da1ca1a040626bf97e.zip cpython-d81780b8b0de6f0a191335da1ca1a040626bf97e.tar.gz cpython-d81780b8b0de6f0a191335da1ca1a040626bf97e.tar.bz2 | |
using clearer syntax
Diffstat (limited to 'Lib/distutils/command/sdist.py')
| -rw-r--r-- | Lib/distutils/command/sdist.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py index e10e25b..27883fd6 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) |
