X-Git-Url: https://projects.mako.cc/source/twitter-api-cdsw/blobdiff_plain/4c43c9724c25c3d919cb535973559fab1f1c0a7b..628c9a0e9eac05e17cf37378f6417e17a1acdf5f:/tweepy/error.py?ds=sidebyside diff --git a/tweepy/error.py b/tweepy/error.py index 753e2fe..1c47a5a 100644 --- a/tweepy/error.py +++ b/tweepy/error.py @@ -2,14 +2,18 @@ # Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. +from __future__ import print_function + +import six + + class TweepError(Exception): """Tweepy exception""" def __init__(self, reason, response=None): - self.reason = unicode(reason) + self.reason = six.text_type(reason) self.response = response Exception.__init__(self, reason) def __str__(self): return self.reason -