X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Ffilesys.py;h=56d58aac7c6fb2324f5fe3d32f1c6cbac580d456;hp=dcdc8026394ff308c7333546fe904e00261ce439;hb=5afb31180662cfaf123ae6155a832470c7c6dce2;hpb=241bc38a0e4d0a33cc885f318f0a5ef6f02c42f0 diff --git a/wrw/filesys.py b/wrw/filesys.py index dcdc802..56d58aa 100644 --- a/wrw/filesys.py +++ b/wrw/filesys.py @@ -1,5 +1,5 @@ import os -import resp +from . import resp pj = os.path.join __all__ = ["filehandler"] @@ -29,7 +29,7 @@ class filehandler(object): elif ext == "html": ctype = "text/html" req.ohead["Content-Type"] = ctype - return open(path, "r") + return open(path, "rb") def resolvefile(self, req, curpath, el): if os.path.isfile(pj(curpath, el)):