Skip to content

Commit 3be66e3

Browse files
author
Bilal Al
committed
polish
1 parent 864a0f6 commit 3be66e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

splitio/models/grammar/matchers/semver.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _parse(self, version):
4343
"""
4444
Parse the string in self.version to update the other internal variables
4545
"""
46-
without_metadata = self.remove_metadata_if_exists(version)
46+
without_metadata = self._remove_metadata_if_exists(version)
4747

4848
index = without_metadata.find(self._PRE_RELEASE_DELIMITER)
4949
if index == -1:
@@ -53,9 +53,9 @@ def _parse(self, version):
5353
without_metadata = without_metadata[:index]
5454
self._pre_release = pre_release_data.split(self._VALUE_DELIMITER)
5555

56-
self.set_major_minor_and_patch(without_metadata)
56+
self._set_major_minor_and_patch(without_metadata)
5757

58-
def remove_metadata_if_exists(self, version):
58+
def _remove_metadata_if_exists(self, version):
5959
"""
6060
Check if there is any metadata characters in self.version.
6161
@@ -69,7 +69,7 @@ def remove_metadata_if_exists(self, version):
6969
self._metadata = version[index:]
7070
return version[:index]
7171

72-
def set_major_minor_and_patch(self, version):
72+
def _set_major_minor_and_patch(self, version):
7373
"""
7474
Set the major, minor and patch internal variables based on string passed.
7575

0 commit comments

Comments
 (0)