Skip to content

Commit

Permalink
removed cleandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Nov 12, 2024
1 parent eb12053 commit 29521f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pydna/dseq.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
import re as _re
import sys as _sys
import math as _math
from inspect import cleandoc as _cleandoc

# from inspect import cleandoc as _cleandoc

from pydna.seq import Seq as _Seq
from Bio.Seq import _translate_str, _SeqAbstractBaseClass
Expand Down Expand Up @@ -468,7 +469,7 @@ def from_representation(cls, dsdna: str, *args, **kwargs):
----tttCTAG
"""
obj = cls.__new__(cls) # Does not call __init__
dsdna = _cleandoc(dsdna)
# dsdna = _cleandoc(dsdna)
ignore = "- |"
w, c, *r = [ln for ln in dsdna.splitlines() if ln.strip(ignore)]
ovhg = obj.ovhg = len(w) - len(w.lstrip(ignore)) - (len(c) - len(c.lstrip(ignore)))
Expand Down

0 comments on commit 29521f6

Please sign in to comment.