diff mercurial/hgweb/hgwebdir_mod.py @ 18645:76ff3a715cf2

hgweb: simplify internal staticfile return codes
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 10 Feb 2013 18:24:29 +0100
parents bf8bbbf4aa45
children 7d31f2e42a8a
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Feb 10 18:24:29 2013 +0100
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sun Feb 10 18:24:29 2013 +0100
@@ -197,7 +197,8 @@
                         if isinstance(tp, str):
                             tp = [tp]
                         static = [os.path.join(p, 'static') for p in tp]
-                    return (staticfile(static, fname, req),)
+                    staticfile(static, fname, req)
+                    return []
 
                 # top-level index
                 elif not virtual: