Skip to content

Commit 2bab9ab

Browse files
committed
Fix #463: Remove duplicate code Version.bump_build
1 parent 6adf876 commit 2bab9ab

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/semver/version.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -359,18 +359,6 @@ def bump_build(self, token: Optional[str] = "build") -> "Version":
359359
else:
360360
build = str(token) + ".0"
361361

362-
# self._build or (token or "build") + ".0"
363-
build = cls._increment_string(build)
364-
if self._build is not None:
365-
build = self._build
366-
elif token == "":
367-
build = "0"
368-
elif token is None:
369-
build = "build.0"
370-
else:
371-
build = str(token) + ".0"
372-
373-
# self._build or (token or "build") + ".0"
374362
build = cls._increment_string(build)
375363
return cls(self._major, self._minor, self._patch, self._prerelease, build)
376364

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy