diff --git a/tren.py b/tren.py index fc861e6..a0cce99 100755 --- a/tren.py +++ b/tren.py @@ -8,7 +8,7 @@ PROGNAME = "tren.py" BASENAME = PROGNAME.split(".py")[0] PROGENV = BASENAME.upper() -RCSID = "$Id: tren.py,v 1.182 2010/03/10 18:29:25 tundra Exp $" +RCSID = "$Id: tren.py,v 1.183 2010/03/10 19:09:13 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -596,17 +596,18 @@ old = self.__ResolveRenameTokens(target, renrequest[OLD]) new = self.__ResolveRenameTokens(target, renrequest[NEW]) - oldstrings = [] # Build a list of indexes to every occurence of the old string, # taking case sensitivity into account - # Handle the case when old = "". - # This means to *replace the entire* old name with new. + # Handle the case when old = "". This means to + # *replace the entire* old name with new. More + # specifically, replace the entire old name *as + # modified so far by preceding rename commands*. if not old: - old = oldname + old = name # Find every instance of the 'old' string in the # current filename. 'Find' in this case can be either