Init serial_ports to [] instead of None
As serial_ports used as a list, so init it to [] instead of None.
This will avoid 'TypeError' if serial_ports has specific value.
Signed-off-by: NYanbing Du <ydu@redhat.com>
Showing
想要评论请 注册 或 登录