changeset 5:4ea758d015f9

Fixed minor quality regression in wikiaction.py :-) imported from: moin--main--1.5--patch-6
author Alexander Schremmer <alex@alexanderweb.de.tla>
date Thu, 22 Sep 2005 22:25:51 +0000
parents 797c25edf753
children 2a982e08aee5
files MoinMoin/wikiaction.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wikiaction.py	Thu Sep 22 22:06:45 2005 +0000
+++ b/MoinMoin/wikiaction.py	Thu Sep 22 22:25:51 2005 +0000
@@ -840,7 +840,7 @@
         mimetype = "text/plain"
         from formatter.text_plain import Formatter
 
-    if mimetype.find("xml") != -1:
+    if "xml" in mimetype:
         mimetype = "text/xml"
     request.http_headers(["Content-Type: %s; charset=%s" % (mimetype, config.charset)])