Ticket #4928: 4928-stop-using-allyourbase.patch
| File 4928-stop-using-allyourbase.patch, 1.7 KB (added by ironfroggy, 2 years ago) |
|---|
-
twisted/python/failure.py
17 17 import inspect 18 18 import opcode 19 19 from cStringIO import StringIO 20 from inspect import getmro 20 21 21 22 from twisted.python import reflect 22 23 … … 280 281 ]) 281 282 tb = tb.tb_next 282 283 if inspect.isclass(self.type) and issubclass(self.type, Exception): 283 parentCs = reflect.allYourBase(self.type)284 parentCs = getmro(self.type) 284 285 self.parents = map(reflect.qual, parentCs) 285 286 self.parents.append(reflect.qual(self.type)) 286 287 else: -
twisted/trial/test/test_reporter.py
9 9 10 10 11 11 import errno, sys, os, re, StringIO 12 from inspect import getmro 12 13 13 14 from twisted.internet.utils import suppressWarnings 14 15 from twisted.python import log 15 16 from twisted.python.failure import Failure 16 from twisted.python.reflect import allYourBase17 17 from twisted.trial import itrial, unittest, runner, reporter, util 18 18 from twisted.trial.reporter import UncleanWarningsReporterWrapper 19 19 from twisted.trial.test import erroneous … … 1219 1219 method = getattr(klass, methodName, None) 1220 1220 if method is None: 1221 1221 return 1222 for base in [klass] + allYourBase(klass):1222 for base in [klass] + getmro(klass): 1223 1223 try: 1224 1224 delattr(base, methodName) 1225 1225 except (AttributeError, TypeError):
