Problem with MixedFunctionSpace

Hi, I am trying to create mixed function space as follow but received error!:

Vector=VectorFunctionSpace(mesh, ‘P’,2)
Tensor=TensorFunctionSpace(mesh, ‘P’,1)
MixedFunctionSpace([Vector,Tensor])


AttributeError Traceback (most recent call last)
in ()
----> 1 MixedFunctionSpace([Vector,Tensor])

~/anaconda3/lib/python3.7/site-packages/ufl/functionspace.py in init(self, function_spaces)
118 AbstractFunctionSpace.init(self)
119 self._ufl_function_spaces = function_spaces
–> 120 self._ufl_element = MixedElement(
[fs.ufl_element() for fs in function_spaces])
121
122 def ufl_sub_spaces(self):

~/anaconda3/lib/python3.7/site-packages/ufl/functionspace.py in (.0)
118 AbstractFunctionSpace.init(self)
119 self._ufl_function_spaces = function_spaces
–> 120 self._ufl_element = MixedElement(*[fs.ufl_element() for fs in function_spaces])
121
122 def ufl_sub_spaces(self):

AttributeError: ‘list’ object has no attribute 'ufl_element’

Mixedfunctionspace is deprecated, see: Replacement of MixedFunctionSpace