changeset 3282:5aefbb27f8c5

clean up the css colon check to be more pythonic
author Mikko Virkkil? <mvirkkil@cc.hut.fi>
date Mon, 17 Mar 2008 13:49:35 +0100
parents d519735ca765
children 66552593f5cc
files MoinMoin/formatter/text_docbook.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/text_docbook.py	Mon Mar 17 10:29:18 2008 +0100
+++ b/MoinMoin/formatter/text_docbook.py	Mon Mar 17 13:49:35 2008 +0100
@@ -707,7 +707,7 @@
         for s in styles.split(";"):
             if s.strip(' "') == "":
                 continue
-            if s.find(":")<0:
+            if ":" not in s:
                 continue
             (key, value) = s.split(":", 1)
             key = key.strip(' "')