summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Thomas <43476211+xavierohan@users.noreply.github.com>2020-01-24 10:58:24 +0530
committerGitHub <noreply@github.com>2020-01-24 10:58:24 +0530
commitc6bea253654d9dbc5c1046c3c9b486a835529578 (patch)
treebcf10e2bc13961954bdad8dcbe38be221d47fff3
parent68224f43d09393c1981bb83ee3c13a5158d2817c (diff)
downloadnumpy-c6bea253654d9dbc5c1046c3c9b486a835529578.tar.gz
Updated pavement.py with f-strings
-rw-r--r--pavement.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pavement.py b/pavement.py
index 494d8b79d..ce4b63073 100644
--- a/pavement.py
+++ b/pavement.py
@@ -86,12 +86,12 @@ def tarball_name(ftype='gztar'):
Type of archive, default is 'gztar'.
"""
- root = 'numpy-%s' % FULLVERSION
+ root = f'numpy-{FULLVERSION}'
if ftype == 'gztar':
return root + '.tar.gz'
elif ftype == 'zip':
return root + '.zip'
- raise ValueError("Unknown type %s" % type)
+ raise ValueError(f"Unknown type {type}")
@task
def sdist(options):