Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio::GenBank::_BaseGenBankConsumer::_remove_newlines (   self,
  text 
) [private]
Remove any newlines in the passed text, returning the new string.

Definition at line 246 of file __init__.py.

                                    :
        """Remove any newlines in the passed text, returning the new string.
        """
        # get rid of newlines in the qualifier value
        newlines = ["\n", "\r"]
        for ws in newlines:
            text = text.replace(ws, "")

        return text


Generated by  Doxygen 1.6.0   Back to index