From 2f42807fd49022ca277c92d024778266c8fb2826 Mon Sep 17 00:00:00 2001 From: Mark Linvill <36269251+mlinvill@users.noreply.github.com> Date: Tue, 22 Nov 2022 15:28:16 -0500 Subject: [PATCH] Use Typing Iterable now. --- src/voeventparse/voevent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/voeventparse/voevent.py b/src/voeventparse/voevent.py index 8a1bbe9..8bcfad8 100644 --- a/src/voeventparse/voevent.py +++ b/src/voeventparse/voevent.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals import copy -import collections +from typing import Iterable import pytz from lxml import objectify, etree @@ -431,7 +431,7 @@ def _listify(x): """Ensure x is iterable; if not then enclose it in a list and return it.""" if isinstance(x, string_types): return [x] - elif isinstance(x, collections.Iterable): + elif isinstance(x, Iterable): return x else: return [x]