diff options
author | Xavier Thomas <43476211+xavierohan@users.noreply.github.com> | 2020-01-24 08:54:12 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 08:54:12 +0530 |
commit | d7cdf5bcc55ffda0d09fcefea97f60bbd53ebc5d (patch) | |
tree | f53d632c6cc3cd505fa9b32e3ea152ffd054d33f /setup.py | |
parent | 68224f43d09393c1981bb83ee3c13a5158d2817c (diff) | |
download | numpy-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-x | setup.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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(): |