some cleaning

This commit is contained in:
HawkOwl 2015-09-21 16:36:54 +08:00
parent cf10233bec
commit 411c7ede19
2 changed files with 6 additions and 3 deletions

View File

@ -207,7 +207,7 @@ class ApplicationError(Error):
self.kwargs = kwargs
self.error = error
def __str__(self):
def __unicode__(self):
if self.kwargs and 'traceback' in self.kwargs:
tb = ':\n' + '\n'.join(self.kwargs.pop('traceback')) + '\n'
self.kwargs['traceback'] = '...'

View File

@ -3,8 +3,10 @@ envlist =
flake8
{pypy,py27,py33}-{twtrunk}
{pypy,py26,py27,py33}-{trollius}
{py34}-{twtrunk,asyncio}
{pypy,py26,py27}-{tw121,tw132,twcurrent}
{py34,py35}-{twtrunk,asyncio}
py26-{tw121,tw132,tw154}
{pypy,py27}-{tw121,tw132,twcurrent}
{py33,py34,py35}-twcurrent
[flake8]
@ -22,6 +24,7 @@ deps =
twtrunk: https://github.com/twisted/twisted/archive/trunk.zip
tw121: Twisted==12.1
tw132: Twisted==13.2
tw154: Twisted==15.4
twcurrent: Twisted
; asyncio dependencies