diff options
Diffstat (limited to 'changelog.py')
-rw-r--r-- | changelog.py | 2 |
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('.')] |