diff MoinMoin/formatter/__init__.py @ 1805:ebcebba1afb3

removed some unused attributes, used 'dummy' for dummies
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 24 Feb 2007 14:18:31 +0100
parents 563bfe02b04f
children 64507f46beb2
line wrap: on
line diff
--- a/MoinMoin/formatter/__init__.py	Sat Feb 24 00:24:01 2007 +0100
+++ b/MoinMoin/formatter/__init__.py	Sat Feb 24 14:18:31 2007 +0100
@@ -122,7 +122,7 @@
         pagename, filename = AttachFile.absoluteName(url, self.page.page_name)
         fname = wikiutil.taintfilename(filename)
         fpath = AttachFile.getFilename(self.request, pagename, fname)
-        base, ext = os.path.splitext(filename)
+        ext = os.path.splitext(filename)[1]
         Parser = wikiutil.getParserForExtension(self.request.cfg, ext)
         if Parser is not None:
             try: