Matt Daemonpypi.python.org 3 pointsballpoint12 years ago1 commentSaveHideCopy link On HNComments−rspeer12yWhy Python 2.7 only? This looks like it would be Python 3 code if you simply changed print str(err) to: print(str(err)) Except, that's a pretty unhelpful thing to print. I believe a much better statement to put there, in Python 2 or 3, would be: raise
Comments
Why Python 2.7 only? This looks like it would be Python 3 code if you simply changed
to: Except, that's a pretty unhelpful thing to print. I believe a much better statement to put there, in Python 2 or 3, would be: