obspy.core.inventory.util.InventoryTextWrapper

class InventoryTextWrapper(width=70, initial_indent='', subsequent_indent='', expand_tabs=True, replace_whitespace=True, fix_sentence_endings=False, break_long_words=True, drop_whitespace=True, break_on_hyphens=True)[source]

Bases: textwrap.TextWrapper

Attributes

__doc__
__module__ str(object=’‘) -> string
sentence_end_re Compiled regular expression objects
unicode_whitespace_trans dict() -> new empty dictionary
uspace int(x=0) -> int or long
whitespace_trans str(object=’‘) -> string
wordsep_re Compiled regular expression objects
wordsep_simple_re Compiled regular expression objects
x int(x=0) -> int or long

Public Methods

fill Reformat the single paragraph in ‘text’ to fit in lines of no
wrap Reformat the single paragraph in ‘text’ so it fits in lines of no more than ‘self.width’ columns, and return a list of wrapped lines.

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

_fix_sentence_endings Correct for sentence endings buried in ‘chunks’.
_handle_long_word _handle_long_word(chunks : [string],
_munge_whitespace Munge whitespace in text: expand tabs and convert all other whitespace characters to spaces.
_split Split the text to wrap into indivisible chunks.
_wrap_chunks

Special Methods

__init__