2008-02-22 Raphael Ackermann <raphael.ackermann@gmail.com>

* various (294 files)
	pep8 doc fixes & pylint fixes

svn: r10103
This commit is contained in:
Raphael Ackermann
2008-02-24 13:55:55 +00:00
parent 2180fa02cb
commit c962d5e6e1
294 changed files with 2925 additions and 2571 deletions

View File

@@ -21,7 +21,7 @@
# $Id$
"""
Provides the SubstKeywords class that will replace keywords in a passed
Provide the SubstKeywords class that will replace keywords in a passed
string with informatin about the person. For sample:
foo = SubstKeywords(person)
@@ -49,7 +49,7 @@ import gen.lib
#------------------------------------------------------------------------
class SubstKeywords:
"""
Produces an object that will substitute information about a person
Produce an object that will substitute information about a person
into a passed string.
$n -> Name - FirstName LastName
@@ -66,7 +66,7 @@ class SubstKeywords:
"""
def __init__(self, database, person_handle):
"""Creates a new object and associates a person with it."""
"""Create a new object and associates a person with it."""
person = database.get_person_from_handle(person_handle)
self.n = name_displayer.display(person)
@@ -122,7 +122,7 @@ class SubstKeywords:
self.M = database.get_place_from_handle(mplace_handle).get_title()
def replace(self, line):
"""Returns a new line of text with the substitutions performed."""
"""Return a new line of text with the substitutions performed."""
array = [ ("$n", self.n), ("$N", self.N), ("$b", self.b),
("$B", self.B), ("$d", self.d), ("$D", self.D),
("$i", self.i), ("$S", self.S), ("$s", self.s),