changeset 1872:a58046e1490d

reduce usage of .find()
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 11 Mar 2007 00:03:03 +0100
parents 89a95d272881
children 9117dcbfd624
files MoinMoin/macro/EmbedObject.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/EmbedObject.py	Sat Mar 10 23:50:54 2007 +0100
+++ b/MoinMoin/macro/EmbedObject.py	Sun Mar 11 00:03:03 2007 +0100
@@ -140,7 +140,7 @@
         kw_count = 0
         argc = len(args)
         for arg in self.args.split(','):
-            if arg.find('=') > -1:
+            if '=' in arg:
                 kw_count += 1
                 key, value = arg.split('=')
                 setattr(self, key, wikiutil.escape(value.strip(), quote=1))