summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorXavier Thomas <43476211+xavierohan@users.noreply.github.com>2020-01-24 08:54:12 +0530
committerGitHub <noreply@github.com>2020-01-24 08:54:12 +0530
commitd7cdf5bcc55ffda0d09fcefea97f60bbd53ebc5d (patch)
treef53d632c6cc3cd505fa9b32e3ea152ffd054d33f /setup.py
parent68224f43d09393c1981bb83ee3c13a5158d2817c (diff)
downloadnumpy-d7cdf5bcc55ffda0d09fcefea97f60bbd53ebc5d.tar.gz
Updated setup.py with f-strings
With reference to the issue MAINT: Use f-strings instead of other string formatting methods #15420 Updated setup.py with f-strings for better readability.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index c1b20afbc..f91810738 100755
--- a/setup.py
+++ b/setup.py
@@ -178,7 +178,7 @@ def check_submodules():
if 'path' in l:
p = l.split('=')[-1].strip()
if not os.path.exists(p):
- raise ValueError('Submodule %s missing' % p)
+ raise ValueError(f'Submodule {p} missing')
proc = subprocess.Popen(['git', 'submodule', 'status'],
@@ -187,7 +187,8 @@ def check_submodules():
status = status.decode("ascii", "replace")
for line in status.splitlines():
if line.startswith('-') or line.startswith('+'):
- raise ValueError('Submodule not clean: %s' % line)
+ raise ValueError(f'Submodule not clean: {line}')
+
class concat_license_files():