diff options
Diffstat (limited to 'scripts/versions.py')
-rwxr-xr-x | scripts/versions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/versions.py b/scripts/versions.py index 4bdcb74..75e5355 100755 --- a/scripts/versions.py +++ b/scripts/versions.py @@ -52,8 +52,8 @@ class Version(namedtuple('_Version', 'major minor patch stage edition')): return (int(self.major), int(self.minor), int(self.patch)) + stage def __str__(self): - stage = '-{}'.format(self.stage) if self.stage else '' - edition = '-{}'.format(self.edition) if self.edition else '' + stage = f'-{self.stage}' if self.stage else '' + edition = f'-{self.edition}' if self.edition else '' return '.'.join(map(str, self[:3])) + edition + stage |