Remove redundant line continuations
svn: r16425
This commit is contained in:
parent
7788df1b20
commit
680a780a8c
@ -54,8 +54,8 @@ class AttributeBase(object):
|
||||
:type source: AttributeBase
|
||||
"""
|
||||
if source:
|
||||
self.attribute_list = [ Attribute(attribute) \
|
||||
for attribute in source.attribute_list ]
|
||||
self.attribute_list = [Attribute(attribute)
|
||||
for attribute in source.attribute_list]
|
||||
else:
|
||||
self.attribute_list = []
|
||||
|
||||
|
@ -180,12 +180,12 @@ class Family(SourceBase, NoteBase, MediaBase, AttributeBase, LdsOrdBase,
|
||||
:type handle_list: str
|
||||
"""
|
||||
if classname == 'Event':
|
||||
new_list = [ ref for ref in self.event_ref_list \
|
||||
if ref.ref not in handle_list ]
|
||||
new_list = [ref for ref in self.event_ref_list
|
||||
if ref.ref not in handle_list]
|
||||
self.event_ref_list = new_list
|
||||
elif classname == 'Person':
|
||||
new_list = [ ref for ref in self.child_ref_list \
|
||||
if ref.ref not in handle_list ]
|
||||
new_list = [ref for ref in self.child_ref_list
|
||||
if ref.ref not in handle_list]
|
||||
self.child_ref_list = new_list
|
||||
if self.father_handle in handle_list:
|
||||
self.father_handle = None
|
||||
|
@ -55,8 +55,8 @@ class LdsOrdBase(object):
|
||||
"""
|
||||
|
||||
if source:
|
||||
self.lds_ord_list = [ LdsOrd(lds_ord) \
|
||||
for lds_ord in source.lds_ord_list ]
|
||||
self.lds_ord_list = [LdsOrd(lds_ord)
|
||||
for lds_ord in source.lds_ord_list]
|
||||
else:
|
||||
self.lds_ord_list = []
|
||||
|
||||
|
@ -134,8 +134,8 @@ class MediaBase(object):
|
||||
:param obj_handle_list: The list of media handles to be removed.
|
||||
:type obj_handle_list: list
|
||||
"""
|
||||
new_media_list = [ media_ref for media_ref in self.media_list \
|
||||
if media_ref.ref not in obj_handle_list ]
|
||||
new_media_list = [media_ref for media_ref in self.media_list
|
||||
if media_ref.ref not in obj_handle_list]
|
||||
self.media_list = new_media_list
|
||||
|
||||
def replace_media_references(self, old_handle, new_handle):
|
||||
|
@ -109,8 +109,8 @@ class Source(MediaBase, NoteBase, PrimaryObject):
|
||||
:type handle_list: str
|
||||
"""
|
||||
if classname == 'Repository':
|
||||
new_list = [ ref for ref in self.reporef_list \
|
||||
if ref.ref not in handle_list ]
|
||||
new_list = [ref for ref in self.reporef_list
|
||||
if ref.ref not in handle_list]
|
||||
self.reporef_list = new_list
|
||||
|
||||
def _replace_handle_reference(self, classname, old_handle, new_handle):
|
||||
@ -371,8 +371,8 @@ class Source(MediaBase, NoteBase, PrimaryObject):
|
||||
:param repo_handle_list: The list of Repository handles to be removed.
|
||||
:type repo_handle_list: list
|
||||
"""
|
||||
new_reporef_list = [ repo_ref for repo_ref in self.reporef_list \
|
||||
if repo_ref.ref not in repo_handle_list ]
|
||||
new_reporef_list = [repo_ref for repo_ref in self.reporef_list
|
||||
if repo_ref.ref not in repo_handle_list]
|
||||
self.reporef_list = new_reporef_list
|
||||
|
||||
def replace_repo_references(self, old_handle, new_handle):
|
||||
|
@ -125,8 +125,8 @@ class SourceBase(object):
|
||||
:param src_handle_list: The list of source handles to be removed.
|
||||
:type src_handle_list: list
|
||||
"""
|
||||
new_source_list = [ src_ref for src_ref in self.source_list \
|
||||
if src_ref.ref not in src_handle_list ]
|
||||
new_source_list = [src_ref for src_ref in self.source_list
|
||||
if src_ref.ref not in src_handle_list]
|
||||
self.source_list = new_source_list
|
||||
|
||||
for item in self.get_sourcref_child_list():
|
||||
|
Loading…
Reference in New Issue
Block a user