summaryrefslogtreecommitdiff
path: root/setuptools/_distutils/bcppcompiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/_distutils/bcppcompiler.py')
-rw-r--r--setuptools/_distutils/bcppcompiler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/_distutils/bcppcompiler.py b/setuptools/_distutils/bcppcompiler.py
index 7a6f951f..ee033ed9 100644
--- a/setuptools/_distutils/bcppcompiler.py
+++ b/setuptools/_distutils/bcppcompiler.py
@@ -234,7 +234,7 @@ class BCPPCompiler(CCompiler):
def_file = os.path.join(temp_dir, '%s.def' % modname)
contents = ['EXPORTS']
for sym in export_symbols or []:
- contents.append(' %s=_%s' % (sym, sym))
+ contents.append(' {}=_{}'.format(sym, sym))
self.execute(write_file, (def_file, contents), "writing %s" % def_file)
# Borland C++ has problems with '/' in paths
@@ -346,7 +346,7 @@ class BCPPCompiler(CCompiler):
(base, ext) = os.path.splitext(os.path.normcase(src_name))
if ext not in (self.src_extensions + ['.rc', '.res']):
raise UnknownFileError(
- "unknown file type '%s' (from '%s')" % (ext, src_name)
+ "unknown file type '{}' (from '{}')".format(ext, src_name)
)
if strip_dir:
base = os.path.basename(base)