diff MoinMoin/formatter/__init__.py @ 1184:b1deb9496f41

use startswith/endswith
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 14 Aug 2006 08:48:19 +0200
parents bc84eae93f8c
children 563bfe02b04f
line wrap: on
line diff
--- a/MoinMoin/formatter/__init__.py	Mon Aug 14 01:24:01 2006 +0200
+++ b/MoinMoin/formatter/__init__.py	Mon Aug 14 08:48:19 2006 +0200
@@ -296,7 +296,7 @@
         return macro_obj.execute(name, args)
 
     def _get_bang_args(self, line):
-        if line[:2] == '#!':
+        if line.startswith('#!'):
             try:
                 name, args = line[2:].split(None, 1)
             except ValueError: