summaryrefslogtreecommitdiff
path: root/changelog.py
diff options
context:
space:
mode:
Diffstat (limited to 'changelog.py')
-rw-r--r--changelog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/changelog.py b/changelog.py
index 45c4090..1175fa1 100644
--- a/changelog.py
+++ b/changelog.py
@@ -50,7 +50,7 @@ class Version(tuple):
correctly printing it as X.Y.Z
"""
def __new__(klass, versionstr):
- if isinstance(versionstr, basestring):
+ if isinstance(versionstr, str):
versionstr = versionstr.strip(' :')
try:
parsed = [int(i) for i in versionstr.split('.')]