diff --git a/semver/__init__.py b/semver/__init__.py index bb744b0..26b8ca7 100644 --- a/semver/__init__.py +++ b/semver/__init__.py @@ -42,7 +42,7 @@ class SemVer(object): br = b.stdout.read().decode('utf-8') #remove newline branch=br.rstrip() - print("Main branch is "+branch) + print('Main branch is ' + branch) matches = self.GET_COMMIT_MESSAGE.search(message) if matches: if str(matches.group(4)) == branch: @@ -50,16 +50,11 @@ class SemVer(object): else: self.merged_branch = matches.group(4) self.main_branch = branch - #print("group1 "+matches.group(1)) - #print("group2 "+matches.group(2)) - #print("group3 "+matches.group(3)) - #print("group4 "+matches.group(4)) - return bool(matches) # based on branches involved see what type of versioning should be done def get_version_type(self): - print("Merged branch is "+self.merged_branch) + print('Merged branch is ' + self.merged_branch) for prefix in self.major_branches: if self.merged_branch.startswith(prefix + '/'): self.version_type = 'major'