[Python-checkins] r68293 - python/trunk/Lib/distutils/command/sdist.py
tarek.ziade
python-checkins at python.org
Sun Jan 4 11:37:52 CET 2009
Author: tarek.ziade
Date: Sun Jan 4 11:37:52 2009
New Revision: 68293
Log:
using clearer syntax
Modified:
python/trunk/Lib/distutils/command/sdist.py
Modified: python/trunk/Lib/distutils/command/sdist.py
==============================================================================
--- python/trunk/Lib/distutils/command/sdist.py (original)
+++ python/trunk/Lib/distutils/command/sdist.py Sun Jan 4 11:37:52 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