Skip to content

Duplicate code in Version.bump_build #463

@viccie30

Description

@viccie30

Which version of Python is the problem with?

3.13, 3.12, 3.11, 3.10, 3.9, 3.8, 3.7, 3.14

What semver version are you using?

3.0.4

What OS are you using? (Add more in the Environment section)

Linux, Windows

Situation

These lines duplicate the lines above and below.

# self._build or (token or "build") + ".0"
build = cls._increment_string(build)
if self._build is not None:
build = self._build
elif token == "":
build = "0"
elif token is None:
build = "build.0"
else:
build = str(token) + ".0"

How to reproduce

N/A

Expected behavior

N/A

Environment

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    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