mallardwriter: Remove some silly code
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 29 Aug 2012 08:39:53 +0000 (05:39 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 29 Aug 2012 08:39:53 +0000 (05:39 -0300)
This silly code was part of a debugging harness.

giscanner/mallardwriter.py

index 133f92141bb4129a99c911a921c20ee4591e2150..bb77ace760b1eaf9f18f7777362caa1991d8deb6 100644 (file)
@@ -243,8 +243,7 @@ class MallardFormatter(object):
 
     def format_inline(self, para):
         tokens = self._scanner.scan(para)
-        words = [(tok, self._process_token(tok)) for tok in tokens]
-        words = [w[1] for w in words]
+        words = [self._process_token(tok) for tok in tokens]
         return ''.join(words)
 
     def format_function_name(self, func):