1
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
2
# See LICENSE for details.
5
I contain ResourceUnpickler, which will unpickle any python object
6
named with the file extension .trp.
10
from pickle import Unpickler
12
_msg = ("is deprecated as of Twisted 9.0. Resource persistence "
13
"is beyond the scope of Twisted Web.")
15
warnings.warn("twisted.web.trp " + _msg , DeprecationWarning, stacklevel=2)
17
def ResourceUnpickler(path, registry = None):
19
"twisted.web.trp.ResourceUnpickler " + _msg ,
20
DeprecationWarning, stacklevel=2)
22
result = Unpickler(fl).load()