highlight: mandatory arguments where possible
authorChristian Ebert <blacktrash@gmx.net>
Wed, 12 Dec 2007 14:36:34 +0100
changeset 5654 831e34e17f4f
parent 5653 1b35bc1c1968
child 5655 fe38b0a3a928
highlight: mandatory arguments where possible
hgext/highlight.py
--- a/hgext/highlight.py	Mon Dec 17 23:42:48 2007 +0100
+++ b/hgext/highlight.py	Wed Dec 12 14:36:34 2007 +0100
@@ -66,8 +66,7 @@
         yield 0, "</div>"
 
 
-def pygments_format(filename, rawtext, forcetext=False, stripecount=1,
-                    style='colorful'):
+def pygments_format(filename, rawtext, forcetext, stripecount, style):
     if not forcetext:
         try:
             lexer = guess_lexer_for_filename(filename, rawtext)
@@ -110,10 +109,8 @@
 
     style = self.config("web", "pygments_style", "colorful")
 
-    text_formatted = lines(pygments_format(f, text,
-                                           forcetext=forcetext,
-                                           stripecount=self.stripecount,
-                                           style=style))
+    text_formatted = lines(pygments_format(f, text, forcetext,
+                                           self.stripecount, style))
 
     # override per-line template
     tmpl.cache['fileline'] = '#line#'