Remove redundant line continuations

svn: r16425
This commit is contained in:
Gerald Britton
2011-01-21 16:27:54 +00:00
parent 7788df1b20
commit 680a780a8c
6 changed files with 16 additions and 16 deletions

View File

@@ -54,8 +54,8 @@ class AttributeBase(object):
:type source: AttributeBase :type source: AttributeBase
""" """
if source: if source:
self.attribute_list = [ Attribute(attribute) \ self.attribute_list = [Attribute(attribute)
for attribute in source.attribute_list ] for attribute in source.attribute_list]
else: else:
self.attribute_list = [] self.attribute_list = []

View File

@@ -180,12 +180,12 @@ class Family(SourceBase, NoteBase, MediaBase, AttributeBase, LdsOrdBase,
:type handle_list: str :type handle_list: str
""" """
if classname == 'Event': if classname == 'Event':
new_list = [ ref for ref in self.event_ref_list \ new_list = [ref for ref in self.event_ref_list
if ref.ref not in handle_list ] if ref.ref not in handle_list]
self.event_ref_list = new_list self.event_ref_list = new_list
elif classname == 'Person': elif classname == 'Person':
new_list = [ ref for ref in self.child_ref_list \ new_list = [ref for ref in self.child_ref_list
if ref.ref not in handle_list ] if ref.ref not in handle_list]
self.child_ref_list = new_list self.child_ref_list = new_list
if self.father_handle in handle_list: if self.father_handle in handle_list:
self.father_handle = None self.father_handle = None

View File

@@ -55,8 +55,8 @@ class LdsOrdBase(object):
""" """
if source: if source:
self.lds_ord_list = [ LdsOrd(lds_ord) \ self.lds_ord_list = [LdsOrd(lds_ord)
for lds_ord in source.lds_ord_list ] for lds_ord in source.lds_ord_list]
else: else:
self.lds_ord_list = [] self.lds_ord_list = []

View File

@@ -134,8 +134,8 @@ class MediaBase(object):
:param obj_handle_list: The list of media handles to be removed. :param obj_handle_list: The list of media handles to be removed.
:type obj_handle_list: list :type obj_handle_list: list
""" """
new_media_list = [ media_ref for media_ref in self.media_list \ new_media_list = [media_ref for media_ref in self.media_list
if media_ref.ref not in obj_handle_list ] if media_ref.ref not in obj_handle_list]
self.media_list = new_media_list self.media_list = new_media_list
def replace_media_references(self, old_handle, new_handle): def replace_media_references(self, old_handle, new_handle):

View File

@@ -109,8 +109,8 @@ class Source(MediaBase, NoteBase, PrimaryObject):
:type handle_list: str :type handle_list: str
""" """
if classname == 'Repository': if classname == 'Repository':
new_list = [ ref for ref in self.reporef_list \ new_list = [ref for ref in self.reporef_list
if ref.ref not in handle_list ] if ref.ref not in handle_list]
self.reporef_list = new_list self.reporef_list = new_list
def _replace_handle_reference(self, classname, old_handle, new_handle): 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. :param repo_handle_list: The list of Repository handles to be removed.
:type repo_handle_list: list :type repo_handle_list: list
""" """
new_reporef_list = [ repo_ref for repo_ref in self.reporef_list \ new_reporef_list = [repo_ref for repo_ref in self.reporef_list
if repo_ref.ref not in repo_handle_list ] if repo_ref.ref not in repo_handle_list]
self.reporef_list = new_reporef_list self.reporef_list = new_reporef_list
def replace_repo_references(self, old_handle, new_handle): def replace_repo_references(self, old_handle, new_handle):

View File

@@ -125,8 +125,8 @@ class SourceBase(object):
:param src_handle_list: The list of source handles to be removed. :param src_handle_list: The list of source handles to be removed.
:type src_handle_list: list :type src_handle_list: list
""" """
new_source_list = [ src_ref for src_ref in self.source_list \ new_source_list = [src_ref for src_ref in self.source_list
if src_ref.ref not in src_handle_list ] if src_ref.ref not in src_handle_list]
self.source_list = new_source_list self.source_list = new_source_list
for item in self.get_sourcref_child_list(): for item in self.get_sourcref_child_list():