X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=wrw%2Ffilesys.py;h=dcdc8026394ff308c7333546fe904e00261ce439;hb=refs%2Fheads%2Fpython2;hp=56d58aac7c6fb2324f5fe3d32f1c6cbac580d456;hpb=a02127330452ddc72406bb1e2e3eeadefe773ebb;p=wrw.git diff --git a/wrw/filesys.py b/wrw/filesys.py index 56d58aa..dcdc802 100644 --- a/wrw/filesys.py +++ b/wrw/filesys.py @@ -1,5 +1,5 @@ import os -from . import resp +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, "rb") + return open(path, "r") def resolvefile(self, req, curpath, el): if os.path.isfile(pj(curpath, el)):