Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f69f74
)
Made iterable-checking compatible with Python 3.2.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 24 Jun 2016 01:10:35 +0000
(
03:10
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 24 Jun 2016 01:10:35 +0000
(
03:10
+0200)
wrw/sp/cons.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/sp/cons.py
b/wrw/sp/cons.py
index
8ffa397
..
4ae21b8
100644
(file)
--- 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: