提交 fe1b91b7 编写于 作者: M michaelowenliu

update collections style supporting in py3.8

上级 60aaf39e
......@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import collections
from collections.abc import Sequence
import inspect
......@@ -98,7 +98,7 @@ class ComponentManager:
"""
# Check whether the type is a sequence
if isinstance(components, collections.Sequence):
if isinstance(components, Sequence):
for component in components:
self._add_single_component(component)
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册