From 680a780a8c896a820f6581507342a44c205b8fb3 Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Fri, 21 Jan 2011 16:27:54 +0000 Subject: [PATCH] Remove redundant line continuations svn: r16425 --- src/gen/lib/attrbase.py | 4 ++-- src/gen/lib/family.py | 8 ++++---- src/gen/lib/ldsordbase.py | 4 ++-- src/gen/lib/mediabase.py | 4 ++-- src/gen/lib/src.py | 8 ++++---- src/gen/lib/srcbase.py | 4 ++-- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/gen/lib/attrbase.py b/src/gen/lib/attrbase.py index 8d95a4e70..67e29760f 100644 --- a/src/gen/lib/attrbase.py +++ b/src/gen/lib/attrbase.py @@ -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 = [] diff --git a/src/gen/lib/family.py b/src/gen/lib/family.py index 28344937f..825db140e 100644 --- a/src/gen/lib/family.py +++ b/src/gen/lib/family.py @@ -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 diff --git a/src/gen/lib/ldsordbase.py b/src/gen/lib/ldsordbase.py index cd6c9d7cc..bfeb2eff4 100644 --- a/src/gen/lib/ldsordbase.py +++ b/src/gen/lib/ldsordbase.py @@ -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 = [] diff --git a/src/gen/lib/mediabase.py b/src/gen/lib/mediabase.py index c4153c817..cbb47a0b8 100644 --- a/src/gen/lib/mediabase.py +++ b/src/gen/lib/mediabase.py @@ -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): diff --git a/src/gen/lib/src.py b/src/gen/lib/src.py index ad738f448..4384329cf 100644 --- a/src/gen/lib/src.py +++ b/src/gen/lib/src.py @@ -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): diff --git a/src/gen/lib/srcbase.py b/src/gen/lib/srcbase.py index 33f64a91e..ef92e430a 100644 --- a/src/gen/lib/srcbase.py +++ b/src/gen/lib/srcbase.py @@ -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():