Made iterable-checking compatible with Python 3.2.
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 24 Jun 2016 01:10:35 +0000 (03:10 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 24 Jun 2016 01:10:35 +0000 (03:10 +0200)
wrw/sp/cons.py

index 8ffa397..4ae21b8 100644 (file)
@@ -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: