From: Fredrik Tolf Date: Sat, 21 Sep 2013 20:47:56 +0000 (+0200) Subject: Tolerate getfilesystemencoding returning None. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=50be6d543e7a6067b631930a025bfdaf53fedbc4;p=wrw.git Tolerate getfilesystemencoding returning None. --- diff --git a/wrw/sp/cons.py b/wrw/sp/cons.py index ff0d0af..1e3d678 100644 --- 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 = {}