23 from .python
import transformRegistry
25 __all__ = [
"transformFromString"]
29 """Read a Transform from a string that was saved using 30 ``Transform.writeString`` 32 Unlike ``Transform.readString``, you need not know the ``Transform`` class in 38 A string in the format produced by ``Transform.writeString``. 42 transform : a ``Transform`` class 43 An object of the same type used to create ``data``. 45 version, transformClassName, remainder = data.split(
" ", 2)
47 transformClass = transformRegistry[transformClassName]
49 raise RuntimeError(
"Unknown transform class %r" % (transformClassName,))
51 return transformClass.readString(data)