22 from __future__
import absolute_import, division, print_function
24 from .python
import transformRegistry
26 __all__ = [
"transformFromString"]
30 """Read a Transform from a string that was saved using 31 ``Transform.writeString`` 33 Unlike ``Transform.readString``, you need not know the ``Transform`` class in 39 A string in the format produced by ``Transform.writeString``. 43 transform : a ``Transform`` class 44 An object of the same type used to create ``data``. 46 version, transformClassName, remainder = data.split(
" ", 2)
48 transformClass = transformRegistry[transformClassName]
50 raise RuntimeError(
"Unknown transform class %r" % (transformClassName,))
52 return transformClass.readString(data)