[Python-checkins] r68294 - in python/branches/release26-maint: Lib/distutils/command/sdist.py
tarek.ziade
python-checkins at python.org
Sun Jan 4 11:43:32 CET 2009
Author: tarek.ziade
Date: Sun Jan 4 11:43:32 2009
New Revision: 68294
Log:
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
........
Modified:
python/branches/release26-maint/ (props changed)
python/branches/release26-maint/Lib/distutils/command/sdist.py
Modified: python/branches/release26-maint/Lib/distutils/command/sdist.py
==============================================================================
--- python/branches/release26-maint/Lib/distutils/command/sdist.py (original)
+++ python/branches/release26-maint/Lib/distutils/command/sdist.py Sun Jan 4 11:43:32 2009
@@ -358,8 +358,13 @@
# 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)
More information about the Python-checkins
mailing list