mercurial/hgweb/common.py
changeset 18645 76ff3a715cf2
parent 18352 e33b9b92a200
child 19032 7d31f2e42a8a
--- a/mercurial/hgweb/common.py	Sun Feb 10 18:24:29 2013 +0100
+++ b/mercurial/hgweb/common.py	Sun Feb 10 18:24:29 2013 +0100
@@ -129,7 +129,7 @@
     for part in parts:
         if (part in ('', os.curdir, os.pardir) or
             os.sep in part or os.altsep is not None and os.altsep in part):
-            return ""
+            return
     fpath = os.path.join(*parts)
     if isinstance(directory, str):
         directory = [directory]
@@ -144,7 +144,6 @@
         data = fp.read()
         fp.close()
         req.respond(HTTP_OK, ct, body=data)
-        return ""
     except TypeError:
         raise ErrorResponse(HTTP_SERVER_ERROR, 'illegal filename')
     except OSError, err: