config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/textwrap.pyo

³ò
h”Rc@sídZdZddkZddkZyeefWn%ej
oddf\ZZnXdddgZd	Zdfd
„ƒYZ	dd„Z
dd
„Zeidei
ƒZeidei
ƒZd„ZedjoedƒGHndS(sText wrapping and filling.
s8$Id: textwrap.py 46863 2006-06-11 19:42:51Z tim.peters $iÿÿÿÿNiitTextWrappertwraptfills	

 c
BsâeZdZeiedeeƒƒZhZe	dƒZ
x!ee	eƒD]Ze
ee<qJWe
idƒZe
ideiƒZdddeeeed„Zd„Zd	„Zd
„Zd„Zd„Zd
„Zd„ZRS(sÑ
    Object for wrapping/filling text.  The public interface consists of
    the wrap() and fill() methods; the other methods are just there for
    subclasses to override in order to tweak the default behaviour.
    If you want to completely replace the main wrapping algorithm,
    you'll probably have to override _wrap_chunks().

    Several instance attributes control various aspects of wrapping:
      width (default: 70)
        the maximum width of wrapped lines (unless break_long_words
        is false)
      initial_indent (default: "")
        string that will be prepended to the first line of wrapped
        output.  Counts towards the line's width.
      subsequent_indent (default: "")
        string that will be prepended to all lines save the first
        of wrapped output; also counts towards each line's width.
      expand_tabs (default: true)
        Expand tabs in input text to spaces before further processing.
        Each tab will become 1 .. 8 spaces, depending on its position in
        its line.  If false, each tab is treated as a single character.
      replace_whitespace (default: true)
        Replace all whitespace characters in the input text by spaces
        after tab expansion.  Note that if expand_tabs is false and
        replace_whitespace is true, every tab will be converted to a
        single space!
      fix_sentence_endings (default: false)
        Ensure that sentence-ending punctuation is always followed
        by two spaces.  Off by default because the algorithm is
        (unavoidably) imperfect.
      break_long_words (default: true)
        Break words longer than 'width'.  If false, those words will not
        be broken, and some lines might be longer than 'width'.
    t u sL(\s+|[^\s\w]*\w+[a-zA-Z]-(?=\w+[a-zA-Z])|(?<=[\w\!\"\'\&\.\,\?])-{2,}(?=\w))s[%s][\.\!\?][\"\']?iFtcCsC||_||_||_||_||_||_||_dS(N(twidthtinitial_indenttsubsequent_indenttexpand_tabstreplace_whitespacetfix_sentence_endingstbreak_long_words(tselfRRRRR	R
R((s$/usr/local/lib/python2.5/textwrap.pyt__init__^s						cCsx|io|iƒ}n|ioPt|tƒo|i|iƒ}qtt|tƒo|i|iƒ}qtn|S(sÚ_munge_whitespace(text : string) -> string

        Munge whitespace in text: expand tabs and convert all other
        whitespace characters to spaces.  Eg. " foo	bar

baz"
        becomes " foo    bar  baz".
        (	Rt
expandtabsR	t
isinstancetstrt	translatetwhitespace_transtunicodetunicode_whitespace_trans(Rttext((s$/usr/local/lib/python2.5/textwrap.pyt_munge_whitespacers

cCs%|ii|ƒ}td|ƒ}|S(s£_split(text : string) -> [string]

        Split the text to wrap into indivisible chunks.  Chunks are
        not quite the same as words; see wrap_chunks() for full
        details.  As an example, the text
          Look, goof-ball -- use the -b option!
        breaks into the following chunks:
          'Look,', ' ', 'goof-', 'ball', ' ', '--', ' ',
          'use', ' ', 'the', ' ', '-b', ' ', 'option!'
        N(t
wordsep_retsplittfiltertNone(RRtchunks((s$/usr/local/lib/python2.5/textwrap.pyt_splitƒscCsd}|i}xk|t|ƒdjoS||ddjo0|i||ƒod||d<|d7}q|d7}qWdS(sf_fix_sentence_endings(chunks : [string])

        Correct for sentence endings buried in 'chunks'.  Eg. when the
        original text contains "... foo.
Bar ...", munge_whitespace()
        and split() will convert that to [..., "foo.", " ", "Bar", ...]
        which has one too few spaces; this method simply changes the one
        space to two.
        iiRs  iN(tsentence_end_retlentsearch(RRtitpat((s$/usr/local/lib/python2.5/textwrap.pyt_fix_sentence_endings’s		)cCsjt||dƒ}|io+|i|d| ƒ|d||d<n|p|i|iƒƒndS(s
_handle_long_word(chunks : [string],
                             cur_line : [string],
                             cur_len : int, width : int)

        Handle a chunk of text (most likely a word, not whitespace) that
        is too long to fit in any line.
        iiÿÿÿÿN(tmaxRtappendtpop(Rtreversed_chunkstcur_linetcur_lenRt
space_left((s$/usr/local/lib/python2.5/textwrap.pyt_handle_long_word¤s
cCs‡g}|idjotd|iƒ‚n|iƒxI|oAg}d}|o
|i}n
|i}|it|ƒ}|diƒdjo|o|d=nxO|oGt|dƒ}|||jo!|i|iƒƒ||7}q©Pq©W|o1t|dƒ|jo|i	||||ƒn|o"|diƒdjo|d=n|o|i|di
|ƒƒq:q:W|S(sŸ_wrap_chunks(chunks : [string]) -> [string]

        Wrap a sequence of text chunks and return a list of lines of
        length 'self.width' or less.  (If 'break_long_words' is false,
        some lines may be longer than this.)  Chunks correspond roughly
        to words and the whitespace between them: each chunk is
        indivisible (modulo 'break_long_words'), but a line break can
        come between any two chunks.  Chunks should not have internal
        whitespace; ie. a chunk is either all whitespace or a "word".
        Whitespace chunks will be removed from the beginning and end of
        lines, but apart from that whitespace is preserved.
        isinvalid width %r (must be > 0)iÿÿÿÿR(Rt
ValueErrortreverseRRRtstripR$R%R*tjoin(RRtlinesR'R(tindentRtl((s$/usr/local/lib/python2.5/textwrap.pyt_wrap_chunksÀs8


	#cCsF|i|ƒ}|i|ƒ}|io|i|ƒn|i|ƒS(s^wrap(text : string) -> [string]

        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.  Tabs in 'text' are expanded with string.expandtabs(),
        and all other whitespace characters (including newline) are
        converted to space.
        (RRR
R"R2(RRR((s$/usr/local/lib/python2.5/textwrap.pyR	s
	
cCsdi|i|ƒƒS(sÞfill(text : string) -> string

        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.
        s
(R.R(RR((s$/usr/local/lib/python2.5/textwrap.pyRs(t__name__t
__module__t__doc__tstringt	maketranst_whitespaceRRRtordtuspacetmaptxtretcompileRt	lowercaseRtTruetFalseR
RRR"R*R2RR(((s$/usr/local/lib/python2.5/textwrap.pyR s2"		

					I	iFcKstd||}|i|ƒS(sÈWrap a single paragraph of text, returning a list of wrapped lines.

    Reformat the single paragraph in 'text' so it fits in lines of no
    more than 'width' columns, and return a list of wrapped lines.  By
    default, tabs in 'text' are expanded with string.expandtabs(), and
    all other whitespace characters (including newline) are converted to
    space.  See TextWrapper class for available keyword args to customize
    wrapping behaviour.
    R(RR(RRtkwargstw((s$/usr/local/lib/python2.5/textwrap.pyR$s
cKstd||}|i|ƒS(s–Fill a single paragraph of text, returning a new string.

    Reformat the single paragraph in 'text' to fit in lines of no more
    than 'width' columns, and return a new string containing the entire
    wrapped paragraph.  As with wrap(), tabs are expanded and other
    whitespace characters converted to space.  See TextWrapper class for
    available keyword args to customize wrapping behaviour.
    R(RR(RRRBRC((s$/usr/local/lib/python2.5/textwrap.pyR1s	s^[ 	]+$s(^[ 	]*)(?:[^ 	
])cCsØd}tid|ƒ}ti|ƒ}xZ|D]R}|djo
|}q.|i|ƒoq.|i|ƒo
|}q.d}Pq.Wdo%|ox|idƒD]}q¢Wn|otid|d|ƒ}n|S(s9Remove any common leading whitespace from every line in `text`.

    This can be used to make triple-quoted strings line up with the left
    edge of the display, while still presenting them in the source code
    in indented form.

    Note that tabs and spaces are both treated as whitespace, but they
    are not equal: the lines "  hello" and "	hello" are
    considered to have no common leading whitespace.  (This behaviour is
    new in Python 2.5; older versions of this module incorrectly
    expanded tabs before searching for common leading whitespace.)
    Ris
s(?m)^N(Rt_whitespace_only_retsubt_leading_whitespace_retfindallt
startswithRR=(RtmargintindentsR0tline((s$/usr/local/lib/python2.5/textwrap.pytdedentCs(


t__main__s Hello there.
  This is indented.(R5t__revision__R6R=R@RAt	NameErrort__all__R8RRRR>t	MULTILINERDRFRLR3(((s$/usr/local/lib/python2.5/textwrap.pys<module>s"
ÿ
	0


Man Man