summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--semantic_version/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/semantic_version/base.py b/semantic_version/base.py
index 5f16f96..ed7b87a 100644
--- a/semantic_version/base.py
+++ b/semantic_version/base.py
@@ -91,13 +91,13 @@ class Version(object):
return int(value)
def next_major(self):
- if self.prerelease and self.minor is 0 and self.patch is 0:
+ if self.prerelease and self.minor == 0 and self.patch == 0:
return Version('.'.join(str(x) for x in [self.major, self.minor, self.patch]))
else:
return Version('.'.join(str(x) for x in [self.major + 1, 0, 0]))
def next_minor(self):
- if self.prerelease and self.patch is 0:
+ if self.prerelease and self.patch == 0:
return Version('.'.join(str(x) for x in [self.major, self.minor, self.patch]))
else:
return Version(