Ticket #5865: deprecate-24.patch

File deprecate-24.patch, 457 bytes (added by Julian Berman, 9 years ago)
  • twisted/python/deprecate.py

    diff --git a/twisted/python/deprecate.py b/twisted/python/deprecate.py
    index f4b31b4..9136fe5 100644
    a b def warnAboutFunction(offender, warningString): 
    528528        registry=globals.setdefault("__warningregistry__", {}),
    529529        module_globals=None)
    530530
    531     if sys.version_info[:2] < (2, 5):
    532         kwargs.pop('module_globals')
    533 
    534531    warn_explicit(warningString, **kwargs)