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:
85ed5fa
)
Tolerate getfilesystemencoding returning None.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 21 Sep 2013 20:47:56 +0000
(22:47 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 21 Sep 2013 20:47:56 +0000
(22:47 +0200)
wrw/sp/cons.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/sp/cons.py
b/wrw/sp/cons.py
index
ff0d0af
..
1e3d678
100644
(file)
--- a/
wrw/sp/cons.py
+++ b/
wrw/sp/cons.py
@@
-40,7
+40,7
@@
class element(node):
return self.__todom__(doc).toxml()
class context(object):
- charset =
sys.getfilesystemencoding(
)
+ charset =
(sys.getfilesystemencoding() or "ascii"
)
def __init__(self):
self.nodeconv = {}