Fix some doc strings; update copyright
authorChristian Ebert <blacktrash@gmx.net>
Fri, 11 Jan 2008 14:41:22 +0100
changeset 335 9f78d508764b
parent 333 c1521ff40eda
child 336 46f5cf3e1a7f
child 337 67b4decdee67
Fix some doc strings; update copyright
hgkw/keyword.py
--- a/hgkw/keyword.py	Wed Jan 09 10:00:18 2008 -0600
+++ b/hgkw/keyword.py	Fri Jan 11 14:41:22 2008 +0100
@@ -1,6 +1,6 @@
 # keyword.py - $Keyword$ expansion for Mercurial
 #
-# Copyright 2007 Christian Ebert <blacktrash@gmx.net>
+# Copyright 2007, 2008 Christian Ebert <blacktrash@gmx.net>
 #
 # This software may be used and distributed according to the terms
 # of the GNU General Public License, incorporated herein by reference.
@@ -152,9 +152,8 @@
 
     def process(self, node, data, expand):
         '''Returns a tuple: data, count.
-        Count is number of keywords/keyword substitutions, indicates
-        to caller whether to act on file containing data.
-        Keywords in data are expanded, if templater was initialized.'''
+        Count is number of keywords/keyword substitutions,
+        telling caller whether to act on file containing data.'''
         if util.binary(data):
             return data, None
         if expand:
@@ -177,8 +176,7 @@
         _kwtemplater.path = path
 
     def kwctread(self, node, expand):
-        '''Reads expanding and counting keywords
-        (only called from kwtemplater.overwrite).'''
+        '''Reads expanding and counting keywords, called from _overwrite.'''
         data = super(kwfilelog, self).read(node)
         return _kwtemplater.process(node, data, expand)