2008-02-22 Raphael Ackermann <raphael.ackermann@gmail.com>
* various (294 files) pep8 doc fixes & pylint fixes svn: r10103
This commit is contained in:
@@ -99,7 +99,7 @@ def remove_family_relationships(db, family_handle, trans=None):
|
||||
|
||||
def remove_parent_from_family(db, person_handle, family_handle, trans=None):
|
||||
"""
|
||||
Removes a person as either the father or mother of a family,
|
||||
Remove a person as either the father or mother of a family,
|
||||
deleting the family if it becomes empty.
|
||||
"""
|
||||
person = db.get_person_from_handle(person_handle)
|
||||
@@ -136,7 +136,7 @@ def remove_parent_from_family(db, person_handle, family_handle, trans=None):
|
||||
|
||||
def remove_child_from_family(db, person_handle, family_handle, trans=None):
|
||||
"""
|
||||
Removes a person as a child of the family, deleting the family if
|
||||
Remove a person as a child of the family, deleting the family if
|
||||
it becomes empty.
|
||||
"""
|
||||
person = db.get_person_from_handle(person_handle)
|
||||
|
||||
@@ -137,7 +137,7 @@ class LongOpStatus(Callback):
|
||||
self._running = False
|
||||
|
||||
def should_cancel(self):
|
||||
"""Returns true of the user has asked for the operation to be cancelled.
|
||||
"""Return true of the user has asked for the operation to be cancelled.
|
||||
|
||||
@return: True of the operation should be cancelled.
|
||||
@rtype: bool
|
||||
|
||||
@@ -198,7 +198,7 @@ class TestCallback(unittest.TestCase):
|
||||
'test-str': (str,),
|
||||
'test-float': (float,),
|
||||
'test-dict': (dict,),
|
||||
'test-lots': (int,str,list,object,float)
|
||||
'test-lots': (int,str,list, object,float)
|
||||
}
|
||||
|
||||
rl = []
|
||||
@@ -213,7 +213,7 @@ class TestCallback(unittest.TestCase):
|
||||
assert type(rl[1]) == list, "not list"
|
||||
|
||||
t.connect('test-object',fn), t.emit('test-object',(t,))
|
||||
assert isinstance(rl[2],object), "not object"
|
||||
assert isinstance(rl[2], object), "not object"
|
||||
|
||||
t.connect('test-float',fn), t.emit('test-float',(2.3,))
|
||||
assert type(rl[3]) == float, "not float"
|
||||
@@ -222,7 +222,7 @@ class TestCallback(unittest.TestCase):
|
||||
assert type(rl[4]) == dict, "not dict"
|
||||
|
||||
rl = []
|
||||
def fn2(i,s,l,o,f,r=rl):
|
||||
def fn2(i,s,l, o,f,r=rl):
|
||||
rl.append(i)
|
||||
|
||||
t.connect('test-lots',fn2), t.emit('test-lots',(1,'a',[1,2],t,1.2))
|
||||
|
||||
Reference in New Issue
Block a user