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

def Bio::GenBank::_BaseGenBankConsumer::_clean_location (   self,
  location_string 
) [private]
Clean whitespace out of a location string.

The location parser isn't a fan of whitespace, so we clean it out
before feeding it into the parser.

Definition at line 235 of file __init__.py.

                                              :
        """Clean whitespace out of a location string.

        The location parser isn't a fan of whitespace, so we clean it out
        before feeding it into the parser.
        """
        #Originally this imported string.whitespace and did a replace
        #via a loop.  It's simpler to just split on whitespace and rejoin
        #the string - and this avoids importing string too.  See Bug 2684.
        return ''.join(location_string.split())


Generated by  Doxygen 1.6.0   Back to index