summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorWojciech Rzadkowski <33913808+wrzadkow@users.noreply.github.com>2020-05-22 17:43:08 +0200
committerGitHub <noreply@github.com>2020-05-22 10:43:08 -0500
commitdabf31c74f6f3153ef4e7c72ad969c37f8652c8a (patch)
tree993a83352bbdd92b7b3d3fe52032f5f52f7a4b09 /setup.py
parentfc2518ba6b11fc52b0ff477b9e83576be90562d8 (diff)
downloadnumpy-dabf31c74f6f3153ef4e7c72ad969c37f8652c8a.tar.gz
MAINT: Remove f-strings in setup.py. (gh-16346)
Remove f-strings from setup.py to allow for an informative error message for python<3.6 users. Closes #16345.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index a86e28341..8178a6c51 100755
--- a/setup.py
+++ b/setup.py
@@ -179,7 +179,7 @@ def check_submodules():
if 'path' in l:
p = l.split('=')[-1].strip()
if not os.path.exists(p):
- raise ValueError(f'Submodule {p} missing')
+ raise ValueError('Submodule {} missing'.format(p))
proc = subprocess.Popen(['git', 'submodule', 'status'],
@@ -188,7 +188,7 @@ def check_submodules():
status = status.decode("ascii", "replace")
for line in status.splitlines():
if line.startswith('-') or line.startswith('+'):
- raise ValueError(f'Submodule not clean: {line}')
+ raise ValueError('Submodule not clean: {}'.format(line))