Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
11c9628
85ed5fa
)
Merge branch 'master' into python3
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 19 Sep 2013 01:21:32 +0000
(
03:21
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 19 Sep 2013 01:21:32 +0000
(
03:21
+0200)
Conflicts:
wrw/sp/cons.py
1
2
wrw/sp/cons.py
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
wrw/sp/cons.py
index
205de03
,
ff0d0af
..
cb9d451
---
1
/
wrw/sp/cons.py
---
2
/
wrw/sp/cons.py
+++ b/
wrw/sp/cons.py
@@@
-39,11
-40,14
+40,13
@@@
class element(node)
return self.__todom__(doc).toxml()
class context(object):
+ charset = sys.getfilesystemencoding()
+
def __init__(self):
self.nodeconv = {}
- self.nodeconv[bytes] = lambda ob: text(ob, "utf-8")
- self.nodeconv[str] = lambda ob: text(ob, self.charset)
- self.nodeconv[unicode] = text
++ self.nodeconv[bytes] = lambda ob: text(ob, self.charset)
+ self.nodeconv[str] = text
self.nodeconv[int] = text
- self.nodeconv[long] = text
self.nodeconv[float] = text
def nodefrom(self, ob):