Skip to content

Commit

Permalink
housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
mbdevpl committed Dec 1, 2017
1 parent c235fd4 commit 7ebfe39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions version_query/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ def _parse_release_str(cls, release: str) -> tuple:

@classmethod
def _parse_pre_release_str(cls, pre_release: str) -> tuple:
#check_match = cls._pattern_pre_release_check.fullmatch(pre_release)
#if check_match is None:
# raise ValueError('given pre-release string {} is invalid'.format(repr(pre_release)))
# check_match = cls._pattern_pre_release_check.fullmatch(pre_release)
# if check_match is None:
# raise ValueError('given pre-release string {} is invalid'.format(repr(pre_release)))
parts = cls._pattern_pre_release.findall(pre_release)
_LOG.debug('parsed pre-release string %s into %s',
repr(pre_release), parts)
Expand Down Expand Up @@ -327,7 +327,7 @@ def release(self) -> t.Tuple[int, t.Optional[int], t.Optional[int]]:

@release.setter
def release(self, release: t.Tuple[int, t.Optional[int], t.Optional[int]]):
#major: int, minor: t.Optional[int] = None, patch: t.Optional[int] = None):
# major: int, minor: t.Optional[int] = None, patch: t.Optional[int] = None):
if not isinstance(release, tuple):
raise TypeError('release={} is of wrong type {} in {}'
.format(repr(release), type(release), repr(self)))
Expand Down

0 comments on commit 7ebfe39

Please # to comment.