From 34535f99d8dd7b24d8f6ae4a70a7d6bcf4bf96c1 Mon Sep 17 00:00:00 2001 From: anonymousdouble <112695649+anonymousdouble@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:50:17 +1100 Subject: [PATCH] Update agp.py (#618) refactor with fstring to format string to make code more Pythonic. --- jcvi/formats/agp.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/jcvi/formats/agp.py b/jcvi/formats/agp.py index 911c88bd..fc191733 100644 --- a/jcvi/formats/agp.py +++ b/jcvi/formats/agp.py @@ -235,10 +235,7 @@ def validate(self): ), "component_begin must be <= component_end" assert ( self.object_span == self.component_span - ), "object_span (%d) must be same as component_span (%d)" % ( - self.object_span, - self.component_span, - ) + ), f"object_span ({self.object_span}) must be same as component_span ({self.component_span})" else: assert self.gap_length >= 1, "gap_length must be >= 1" assert (