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, tabsize=8, *, max_lines=None, placeholder=' [...]')[source]¶ Bases:
textwrap.TextWrapper
Attributes
__dict__
__doc__
__module__
__weakref__
list of weak references to the object (if defined)
sentence_end_re
unicode_whitespace_trans
uspace
wordsep_re
wordsep_simple_re
x
Public Methods
Reformat the single paragraph in ‘text’ to fit in lines of no more than ‘self.width’ columns, and return a new string containing the entire wrapped paragraph.
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.
Correct for sentence endings buried in ‘chunks’.
_handle_long_word(chunks : [string],
Munge whitespace in text: expand tabs and convert all other whitespace characters to spaces.
Split the text to wrap into indivisible chunks.
Wrap a sequence of text chunks and return a list of lines of length ‘self.width’ or less.
Special Methods
Default dir() implementation.
Default object formatter.
Initialize self.
This method is called when a class is subclassed.
Create and return a new object.
Helper for pickle.
Helper for pickle.
Size of object in memory, in bytes.
Abstract classes can override this to customize issubclass().