pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/rbarrois/python-semanticversion/pull/50

0bd78641c0a1f3e0.css" /> Parameterized next method wrapper by 6C1 · Pull Request #50 · rbarrois/python-semanticversion · GitHub
Skip to content

Parameterized next method wrapper#50

Open
6C1 wants to merge 5 commits intorbarrois:masterfrom
6C1:parameterize_next_methods
Open

Parameterized next method wrapper#50
6C1 wants to merge 5 commits intorbarrois:masterfrom
6C1:parameterize_next_methods

Conversation

@6C1
Copy link
Copy Markdown

@6C1 6C1 commented Jan 21, 2017

This method allows the incrementation level to be passed as a parameter.

if version_level not in (MAJOR, MINOR, PATCH):
raise ValueError(
'Version level must be one of {}, {} or {}'
.format(MAJOR, MINOR, PATCH)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the linter doesnt like this.

A trick I often use here is:

            raise ValueError(
                'Version level must be one of {}, {} or {}'
                ''.format(MAJOR, MINOR, PATCH)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

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