summaryrefslogtreecommitdiff
path: root/setuptools/_distutils/command/sdist.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-08-02 21:03:33 -0400
committerJason R. Coombs <jaraco@jaraco.com>2022-08-02 21:13:43 -0400
commite90b97304d50eb1246197014ca2d794987ce1934 (patch)
tree23e9f77cedeeb30cd3765fd1e35862c2eb89cffb /setuptools/_distutils/command/sdist.py
parent9b0cf7e1dfd8c3e11a47a9b3c7f4385745d50daf (diff)
parentc397f4c164e0a6f49a1ac3a70f5c80fe05785ed6 (diff)
downloadpython-setuptools-git-e90b97304d50eb1246197014ca2d794987ce1934.tar.gz
Merge https://github.com/pypa/distutils into bugfix/distutils-164
Diffstat (limited to 'setuptools/_distutils/command/sdist.py')
-rw-r--r--setuptools/_distutils/command/sdist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/_distutils/command/sdist.py b/setuptools/_distutils/command/sdist.py
index ec3c97ac..d6e9489d 100644
--- a/setuptools/_distutils/command/sdist.py
+++ b/setuptools/_distutils/command/sdist.py
@@ -402,7 +402,7 @@ class sdist(Command):
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)
+ vcs_ptrn = r'(^|{})({})({}).*'.format(seps, '|'.join(vcs_dirs), seps)
self.filelist.exclude_pattern(vcs_ptrn, is_regex=1)
def write_manifest(self):