From 1273171c643351d41f6d4fbf90f236432d005fc6 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 24 Jun 2016 03:10:35 +0200 Subject: [PATCH] Made iterable-checking compatible with Python 3.2. --- wrw/sp/cons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrw/sp/cons.py b/wrw/sp/cons.py index 8ffa397..4ae21b8 100644 --- a/wrw/sp/cons.py +++ b/wrw/sp/cons.py @@ -1,4 +1,4 @@ -import sys, collections.abc +import sys, collections import xml.dom.minidom class node(object): @@ -64,7 +64,7 @@ class context(object): new = self.nodefrom(child) if new is not None: node.children.append(self.nodefrom(child)) - elif isinstance(child, collections.abc.Iterable): + elif isinstance(child, collections.Iterable): for ch in child: self.addchild(node, ch) else: -- 2.11.0