diff options
author | Simon Budig <simon@budig.de> | 2009-02-27 00:00:00 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2011-10-21 16:00:58 +0200 |
commit | 86256a10a61916c0a9d1d69777e1c50b2ad7a2a3 (patch) | |
tree | 07dddf7c2b77840aca1106ded7ae2f999645173f | |
parent | ac0265bed01a470cdf00d85a3353156f421120fb (diff) |
minor fix
-rwxr-xr-x | woof | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -235,8 +235,8 @@ class FileServHTTPRequestHandler (BaseHTTPServer.BaseHTTPRequestHandler): stripoff = os.path.dirname (self.filename) + os.sep for root, dirs, files in os.walk (self.filename): - for file in files: - filename = os.path.join (root, file) + for f in files: + filename = os.path.join (root, f) if filename[:len (stripoff)] != stripoff: raise RuntimeException, "invalid filename assumptions, please report!" zfile.write (filename, filename[len (stripoff):]) |