changeset 790:930c9f03aa13

fix typo, remove superfluous encoding from text filter list
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 01 May 2006 17:20:27 +0200
parents a1359eaee20e
children 50f4d23d2e37
files MoinMoin/filter/text.py MoinMoin/wikiutil.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/filter/text.py	Mon May 01 16:43:28 2006 +0200
+++ b/MoinMoin/filter/text.py	Mon May 01 17:20:27 2006 +0200
@@ -11,7 +11,7 @@
 import codecs
 
 def execute(indexobj, filename):
-    for enc in ('utf-8', 'iso-8859-15', 'iso-8859-1', ):
+    for enc in ('utf-8', 'iso-8859-15', ):
         try:
             f = codecs.open(filename, "r", enc)
             data = f.read()
--- a/MoinMoin/wikiutil.py	Mon May 01 16:43:28 2006 +0200
+++ b/MoinMoin/wikiutil.py	Mon May 01 17:20:27 2006 +0200
@@ -46,7 +46,7 @@
  '.otp': 'application/vnd.oasis.opendocument.presentation-template',
  '.otg': 'application/vnd.oasis.opendocument.graphics-template',
 }
-[mimetypes.add_type(mimetype, ext, True) for ext, mimetype in our_types.items()]
+[mimetypes.add_type(mimetype, ext, True) for ext, mimetype in _our_types.items()]
 
 #############################################################################
 ### Getting data from user/Sending data to user