Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
pygments
/
formatters
/
File Content:
other.pyc
� _aTc @ s� d Z d d l m Z d d l m Z m Z d d l m Z d d l m Z d d d g Z d e f d � � YZ d e f d � � YZ d Z d Z d e f d � � YZ d S( s� pygments.formatters.other ~~~~~~~~~~~~~~~~~~~~~~~~~ Other formatters: NullFormatter, RawTokenFormatter. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. i����( t Formatter( t OptionErrort get_choice_opt( t Token( t colorizet NullFormattert RawTokenFormattert TestcaseFormatterc B s2 e Z d Z d Z d d g Z d g Z d � Z RS( s; Output the text unchanged without any formatting. s Text onlyt textt nulls *.txtc C sP | j } x@ | D]8 \ } } | r; | j | j | � � q | j | � q Wd S( N( t encodingt writet encode( t selft tokensourcet outfilet enct ttypet value( ( s= /usr/lib/python2.7/site-packages/pygments/formatters/other.pyt format s ( t __name__t __module__t __doc__t namet aliasest filenamesR ( ( ( s= /usr/lib/python2.7/site-packages/pygments/formatters/other.pyR s c B sA e Z d Z d Z d d g Z d g Z e Z d � Z d � Z RS( s} Format tokens as a raw representation for storing token streams. The format is ``tokentype<TAB>repr(tokenstring)\n``. The output can later be converted to a token stream with the `RawTokenLexer`, described in the :doc:`lexer list <lexers>`. Only two options are accepted: `compress` If set to ``'gz'`` or ``'bz2'``, compress the output with the given compression algorithm after encoding (default: ``''``). `error_color` If set to a color name, highlight error tokens using that color. If set but with no value, defaults to ``'red'``. .. versionadded:: 0.11 s Raw tokenst rawt tokenss *.rawc K s� t j | | � d | _ t | d d d d d g d � | _ | j d d � | _ | j t k rm d | _ n | j d k r� y t | j d � Wq� t k r� t d | j � � q� Xn d S( Nt asciit compresst t nonet gzt bz2t error_colort reds Invalid color %r specified( R t __init__R R R t gett NoneR"