Skip to content

Commit

Permalink
Specify exception on StringIO import.
Browse files Browse the repository at this point in the history
Leaving things better than I found it :)
  • Loading branch information
SethMMorton committed Aug 25, 2018
1 parent 3cd66c5 commit 0b180f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bumpversion/__init__.py
Expand Up @@ -12,7 +12,7 @@
try:
# Python 2
from StringIO import StringIO
except:
except ImportError:
# Python 3
from io import StringIO

Expand Down

0 comments on commit 0b180f2

Please sign in to comment.