Skip to content

Commit

Permalink
Update agp.py (#618)
Browse files Browse the repository at this point in the history
refactor with fstring to format string to make code more Pythonic.
  • Loading branch information
anonymousdouble authored Dec 20, 2023
1 parent ab3f79c commit 34535f9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions jcvi/formats/agp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 34535f9

Please sign in to comment.