;
nAc           @   s  d  Z  d Z d k Z d k Z d k Z d k Z d k Z d k Z d k Z	 d k
 Z
 d k Z d k Z d k l Z l Z d   Z d   Z e e d  Z e e d  Z e e d  Z e e d	  Z e e d
  Z e e d  Z e e d  Z e d  Z d   Z d e i f d     YZ d e i f d     YZ d e i e i f d     YZ d e	 i f d     YZ d e f d     YZ d S(   s  
Command-line and common processing for Docutils front-end tools.

Exports the following classes:

* `OptionParser`: Standard Docutils command-line processing.
* `Option`: Customized version of `optparse.Option`; validation support.
* `Values`: Runtime settings; objects are simple structs
  (``object.attribute``).  Supports cumulative list settings (attributes).
* `ConfigParser`: Standard Docutils config file processing.

Also exports the following functions:

* Option callbacks: `store_multiple`, `read_config_file`.
* Setting validators (see `OptionParser.validators`: `validate_encoding`,
  `validate_encoding_error_handler`, `validate_encoding_and_error_handler`,
  `validate_boolean`, `validate_threshold`,
  `validate_colon_separated_string_list`.
* `make_paths_absolute`.
s   reStructuredTextN(   s   Valuess   SUPPRESS_HELPc         O   sX   x! | D] } t | i | t  q Wx- | i   D] \ } } t | i | |  q1 Wd S(   s   
    Store multiple values in `parser.values`.  (Option callback.)

    Store `None` for each attribute named in `args`, and store the value for
    each key (attribute name) in `kwargs`.
    N(
   s   argss	   attributes   setattrs   parsers   valuess   Nones   kwargss   itemss   keys   value(   s   options   opts   values   parsers   argss   kwargss	   attributes   key(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   store_multiple+   s       c         C   sO   y | i |  } Wn" t j
 o } | i |  n X| i i | |  d S(   sQ   
    Read a configuration file during option processing.  (Option callback.)
    N(   s   parsers   get_config_file_settingss   values   new_settingss
   ValueErrors   errors   valuess   update(   s   options   opts   values   parsers   new_settingss   error(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   read_config_file7   s     c         C   sX   y t  i |  Wn< t j
 o0 t d |  | f  t t i   d f  n X| Sd  S(   Ns$   setting "%s": unknown encoding: "%s"i   (   s   codecss   lookups   values   LookupErrors   settings   Nones   syss   exc_info(   s   settings   values   option_parsers   config_parsers   config_section(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   validate_encodingA   s
    .c         C   s   y t  i |  Wn t j
 oG | d d d d f j o' t d |  t t i   d f  q n7 t j
 o* t d |  t t i   d f  n X| Sd  S(   Ns   stricts   ignores   replaces   xmlcharrefreplacese   unknown encoding error handler: "%s" (choices: "strict", "ignore", "replace", or "xmlcharrefreplace")i   s   unknown encoding error handler: "%s" (choices: "strict", "ignore", "replace", "backslashreplace", "xmlcharrefreplace", and possibly others; see documentation for the Python ``codecs`` module)(   s   codecss   lookup_errors   values   AttributeErrors   LookupErrors   Nones   syss   exc_info(   s   settings   values   option_parsers   config_parsers   config_section(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   validate_encoding_error_handlerK   s    +(c         C   s   d | j ol | i d  \ } } t |  d | | | |  | o | i	 | |  d |  q t
 | i |  d |  n | } t |  | | | |  | Sd S(   s   
    Side-effect: if an error handler is included in the value, it is inserted
    into the appropriate place as if it was a separate setting/option.
    s   :s   _error_handlerN(   s   values   splits   encodings   handlers   validate_encoding_error_handlers   settings   option_parsers   config_parsers   config_sections   sets   setattrs   valuess   validate_encoding(   s   settings   values   option_parsers   config_parsers   config_sections   encodings   handler(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys#   validate_encoding_and_error_handler^   s     

c         C   ss   t  | t i  oX y | i | i   i   SWqk t j
 o* t	 d |  t
 t i   d f  qk Xn | Sd  S(   Ns   unknown boolean value: "%s"i   (   s
   isinstances   values   typess
   StringTypes   option_parsers   booleanss   strips   lowers   KeyErrors   LookupErrors   Nones   syss   exc_info(   s   settings   values   option_parsers   config_parsers   config_section(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   validate_booleant   s    ,c         C   sy   y t  |  SWnd t j
 oX y | i | i   SWqu t t f j
 o' t d |  t	 t
 i d f  qu Xn Xd  S(   Ns   unknown threshold: %r.i   (   s   ints   values
   ValueErrors   option_parsers
   thresholdss   lowers   KeyErrors   AttributeErrors   LookupErrors   Nones   syss   exc_info(   s   settings   values   option_parsers   config_parsers   config_section(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   validate_threshold~   s    c         C   sP   t  | t i  o | i d  } n# | i   } | i | i d   | Sd  S(   Ns   :(   s
   isinstances   values   typess
   StringTypes   splits   pops   lasts   extend(   s   settings   values   option_parsers   config_parsers   config_sections   last(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys$   validate_colon_separated_string_list   s
    c         C   s4   | o d Sn! | i d  o | Sn	 | d Sd  S(   Ns   ./s   /(   s   values   endswith(   s   settings   values   option_parsers   config_parsers   config_section(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   validate_url_trailing_slash   s
    c         C   s   | t j o t i   } n x | D] } |  i |  oy |  | } t	 | t
 i  o4 g  i } | D] } | t | |   qe ~ } n | o t | |  } n | |  | <q$ q$ Wd S(   s   
    Interpret filesystem path settings relative to the `base_path` given.

    Paths are values in `pathdict` whose keys are in `keys`.  Get `keys` from
    `OptionParser.relative_path_settings`.
    N(   s	   base_paths   Nones   oss   getcwds   keyss   keys   pathdicts   has_keys   values
   isinstances   typess   ListTypes   appends   _[1]s   paths   make_one_path_absolute(   s   pathdicts   keyss	   base_paths   _[1]s   values   keys   path(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   make_paths_absolute   s      
4c         C   s#   t  i i t  i i |  |   Sd  S(   N(   s   oss   paths   abspaths   joins	   base_path(   s	   base_paths   path(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   make_one_path_absolute   s    s   Valuesc           B   s   t  Z d  Z d   Z RS(   s   
    Updates list attributes by extension rather than by replacement.
    Works in conjunction with the `OptionParser.lists` instance attribute.
    c         C   s   t  | t  o | i } n | i   } xj | i i   D]Y } t	 |  |  o | i |  o3 t |  |  } | o | | | 7} | | =q q9 q9 W|  i |  d  S(   N(   s
   isinstances
   other_dicts   Valuess   __dict__s   copys   option_parsers   listss   keyss   settings   hasattrs   selfs   has_keys   getattrs   values   _update_loose(   s   selfs
   other_dicts   option_parsers   values   setting(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   update   s      (   s   __name__s
   __module__s   __doc__s   update(    (    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   Values   s    s   Optionc           B   s   t  Z d   Z RS(   Nc   
      C   s   t  i i |  | | | |  } |  i	 } | o t | |  } | i i |  }	 |	 ow y |	 | | |  } WnJ t j
 o> } t  i d | | i i | f  t t i   d f  n Xt | | |  q n | Sd S(   sp   
        Call the validator function on applicable settings.
        Extends `optparse.Option.process`.
        s    Error in option "%s":
    %s: %si   N(   s   optparses   Options   processs   selfs   opts   values   valuess   parsers   results   dests   settings   getattrs
   validatorss   gets	   validators	   new_values	   Exceptions   errors   OptionValueErrors	   __class__s   __name__s   Nones   syss   exc_infos   setattr(
   s   selfs   opts   values   valuess   parsers   settings   results   errors	   new_values	   validator(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   process   s     	:(   s   __name__s
   __module__s   process(    (    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   Option   s   s   OptionParserc        .   B   sr  t  Z d  Z d d d g Z d i   Z h  d d <d d <d	 d
 <d d <d d <Z h  d d <d d <d d <d d <d d <d d <d d <d d <d d <Z e e	 d  o
 d Z
 n d Z
 d e d d d g h  d  d! <d" e <f d# d$ g h  d  d% <d& d' <f d( d) d* g h  d  d+ <d, d- <d& d. <f d/ d0 d1 g h  d  d+ <d, d2 <d& d. <f d3 d4 g h  d  d+ <d, e <d& d. <f d5 d6 d7 g h  d  d! <d" e <f d8 d9 g h  d: d; <f d< d= g h  d  d> <d> e <d? d@ dA f <f dB dC g h  d& dD <d  d+ <d, dE <dF dE <f dG dH g h  d& dD <d  d+ <d, dI <f dJ dK g h  d& dD <d  d% <f dL dM g h  d  d! <dF d <d" e <f dN dO g h  d& dP <d  d% <f dQ dR g h  d  d% <d& dS <dF d <d" e <f dT dU dV g h  dW e <dF d <d& dX <d: dY <d" e <f dZ d[ d\ g h  d  d+ <d, d <d& dX <f d] d^ d_ g h  d  d+ <d, d <d& dX <f d` da g h  dW e <d& db <dF d <d: dY <d" e <f dc dd g h  d  d+ <d, d <d& db <f de df g h  dW e <d& dg <dF d <d: dY <d" e <f dh di g h  d  d! <d" e <f dj dk g h  d  d% <d& dl <f dm dn g h  d& do <d: dp <f dq dr g h  d  d! <dF e <d" e <f ds dt g h  d& du <d  d% <f dv dw dx g h  d: dy <d" e <f dz d{ d| g h  d: d} <dF d~ <d" e <f d d g h  dF d <d" e <f d e
 d d g h  d: d} <dF d <d" e <f d e
 d g h  dF e
 <d" e <f d d d g h  d& d <dF d <d: dy <f d d g h  d: dp <d d <d  d> <d> e <f d d d g h  d  d <f d d d g h  d  d <f e d g h  d  d! <f e d g h  d  d! <f e d g h  d  d! <f e d g h  d  d! <f e d g h  d  d <d& d <d" e <f f' f Z h  d e <d e <d e <Z do f Z d Z d e i Z f  e e d  Z d   Z d   Z d   Z d   Z  d   Z! d   Z" d   Z# RS(   s  
    Parser for command-line and library use.  The `settings_spec`
    specification here and in other Docutils components are merged to build
    the set of command-line options and runtime settings for this process.

    Common settings (defined below) and component-specific settings must not
    conflict.  Short options are reserved for common settings, and components
    are restrict to using long options.
    s   /etc/docutils.confs   ./docutils.confs   ~/.docutilss(   info 1 warning 2 error 3 severe 4 none 5s   infoi   s   warningi   s   errori   s   severei   s   nonei   s   1s   ons   yess   trues   0i    s   offs   nos   falses    s   backslashreplace_errorss   backslashreplaces   replaces   General Docutils OptionssM   Include a "Generated by Docutils" credit and link at the end of the document.s   --generators   -gs   actions
   store_trues	   validators"   Do not include a generator credit.s   --no-generators   store_falses   dests	   generators2   Include the date at the end of the document (UTC).s   --dates   -ds   store_consts   consts   %Y-%m-%ds	   datestamps9   Include the time & date at the end of the document (UTC).s   --times   -ts   %Y-%m-%d %H:%M UTCs'   Do not include a datestamp of any kind.s   --no-datestamps@   Include a "View document source" link (relative to destination).s   --source-links   -ssY   Use the supplied <URL> verbatim for a "View document source" link; implies --source-link.s   --source-urls   metavars   <URL>s-   Do not include a "View document source" link.s   --no-source-links   callbacks   callback_argss   source_links
   source_urlsY   Enable backlinks from section headers to table of contents entries.  This is the default.s   --toc-entry-backlinkss   toc_backlinkss   entrys   defaultsJ   Enable backlinks from section headers to the top of the table of contents.s   --toc-top-backlinkss   tops+   Disable backlinks to the table of contents.s   --no-toc-backlinkssX   Enable backlinks from footnotes and citations to their references.  This is the default.s   --footnote-backlinkss/   Disable backlinks from footnotes and citations.s   --no-footnote-backlinkss   footnote_backlinkss"   Disable Docutils section numberings   --no-section-numberings   sectnum_xforms   Set verbosity threshold; report system messages at or higher than <level> (by name or number: "info" or "1", warning/2, error/3, severe/4; also, "none" or "5").  Default is 2 (warning).s   --reports   -rs   choicess   report_levels   <level>sN   Report all system messages, info-level and higher.  (Same as "--report=info".)s	   --verboses   -vs>   Do not report any system messages.  (Same as "--report=none".)s   --quiets   -qs   Set the threshold (<level>) at or above which system messages are converted to exceptions, halting execution immediately by exiting (or propagating the exception if --traceback set).  Levels as in --report.  Default is 4 (severe).s   --halts
   halt_levels@   Same as "--halt=info": halt processing at the slightest problem.s   --stricts   Enable a non-zero exit status for normal exit if non-halting system messages (at or above <level>) were generated.  Levels as in --report.  Default is 5 (disabled).  Exit status is the maximum system message level plus 10 (11 for INFO, etc.).s   --exit-statuss   exit_status_levelsB   Report debug-level system messages and generate diagnostic output.s   --debugsH   Do not report debug-level system messages or generate diagnostic output.s
   --no-debugs   debugs8   Send the output of system messages (warnings) to <file>.s
   --warningss   warning_streams   <file>s   Enable Python tracebacks when halt-level system messages and other exceptions occur.  Useful for debugging, and essential for issue reports.s   --tracebacksa   Disable Python tracebacks when errors occur; report just the error instead.  This is the default.s   --no-tracebacks	   tracebacksA   Specify the encoding of input text.  Default is locale-dependent.s   --input-encodings   -is   <name>s   Specify the text encoding for output.  Default is UTF-8.  Optionally also specify the error handler for unencodable characters, after a colon (":"); default is "strict".  (See "--output-encoding-error-encoding".)s   --output-encodings   -os   <name[:handler]>s   utf-8s  Specify the error handler for unencodable characters in the output.  Acceptable values include "strict", "ignore", "replace", "xmlcharrefreplace", and "backslashreplace" (in Python 2.3+).  Default is "strict".  Usually specified as part of --output-encoding.s   --output-encoding-error-handlers   stricts   Specify the text encoding for error output.  Default is ASCII.  Optionally also specify the error handler for unencodable characters, after a colon (":"); default is "%s".  (See "--output-encoding-error-encoding".s   --error-encodings   -es   asciis   Specify the error handler for unencodable characters in error output.  See --output-encoding-error-handler for acceptable values.  Default is "%s".  Usually specified as part of --error-encoding.s   --error-encoding-error-handlers]   Specify the language of input text (ISO 639 2-letter identifier).  Default is "en" (English).s
   --languages   -ls   language_codes   ens6   Read configuration settings from <file>, if it exists.s   --configs   types   strings,   Show this program's version number and exit.s	   --versions   -Vs   versions    Show this help message and exit.s   --helps   -hs   helps   --dump-settingss   --dump-internalss   --dump-transformss   --dump-pseudo-xmls   --expose-internal-attributes   appends   expose_internalss   _disable_configs   _sources   _destinations   generals   %%prog (Docutils %s)c      
   O   s  h  |  _ h  |  _ t i i |  d t d t d t i d d  | | |  i o |  i |  _ n t |  i  |  _ |  f t |  |  _ |  i |  i  |  i | p h    | o |  i d oI y |  i   } Wn" t j
 o } |  i |  n X|  i | i   n d S(   s   
        `components` is a list of Docutils components each containing a
        ``.settings_spec`` attribute.  `defaults` is a mapping of setting
        default overrides.
        s   option_classs   add_help_options	   formatters   widthiN   s   _disable_configN(   s   selfs
   validatorss   listss   optparses   OptionParsers   __init__s   Options   Nones   TitledHelpFormatters   argss   kwargss   versions   version_templates   lists   relative_path_settingss   tuples
   componentss   populate_from_componentss   set_defaultss   defaultss   read_config_filess   get_standard_config_settingss   config_settingss
   ValueErrors   errors   __dict__(   s   selfs
   componentss   defaultss   read_config_filess   argss   kwargss   errors   config_settings(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   __init__  s&     	 	 c         C   s  x}| D]u} | t j o q n | i } |  i i | i  x<t d t |  d  D]"} | | | d !\ } } } | o& t i |  | |  } |  i |  n |  } x | D] \ } } }
 |
 i   }
 |
 i d  o |
 d }	 |
 d =n t }	 | i d | | |
  } |	 o |	 |  i | i <n |
 i d  d j o d |  i | i <q q W| i o |  i i | i  qV qV Wq Wx6 | D]. } | o | i  o |  i i | i   qqWd S(	   sE  
        For each component, first populate from the `SettingsSpec.settings_spec`
        structure, then from the `SettingsSpec.settings_defaults` dictionary.
        After all components have been processed, check for and populate from
        each component's `SettingsSpec.settings_default_overrides` dictionary.
        i    i   s	   validators   helps   actions   appendi   N(!   s
   componentss	   components   Nones   settings_specs   selfs   relative_path_settingss   extends   ranges   lens   is   titles   descriptions   option_specs   optparses   OptionGroups   groups   add_option_groups	   help_texts   option_stringss   kwargss   copys   has_keys	   validators
   add_options   options
   validatorss   dests   gets   listss   settings_defaultss   defaultss   updates   settings_default_overrides(   s   selfs
   componentss   groups   descriptions   settings_specs   titles   is   option_specs	   components	   validators   kwargss	   help_texts   option_stringss   option(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   populate_from_components  s@      	  

 c         C   s   y t  i d i t  i  } Wn t j
 o |  i } n Xg  i } | D]- } | i   o | t  i i |   qJ qJ ~ Sd S(   s:   Return list of config files, from environment or standard.s   DOCUTILSCONFIGN(   s   oss   environs   splits   pathseps   config_filess   KeyErrors   selfs   standard_config_filess   appends   _[1]s   fs   strips   paths
   expanduser(   s   selfs   fs   _[1]s   config_files(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   get_standard_config_files  s     c         C   sA   t    } x- |  i   D] } | i |  i |  |   q W| Sd  S(   N(   s   Valuess   settingss   selfs   get_standard_config_filess   filenames   updates   get_config_file_settings(   s   selfs   filenames   settings(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   get_standard_config_settings  s
    	 c         C   s   t    } | i | |   t i i |  } h  } t
   } x |  i D]z } | o qD n xb t | i p f   | i f D]@ } | i |  o qz n d | | <| i | i |  |   qz WqD Wt | i |  i |  | i Sd S(   sA   Returns a dictionary containing appropriate config file settings.i   N(   s   ConfigParsers   parsers   reads   config_files   selfs   oss   paths   dirnames	   base_paths   applieds   Valuess   settingss
   componentss	   components   tuples   config_section_dependenciess   config_sections   sections   has_keys   updates   get_sections   make_paths_absolutes   __dict__s   relative_path_settings(   s   selfs   config_files   applieds   settingss   parsers	   components	   base_paths   section(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   get_config_file_settings   s$     		
 ! 
!c         C   s?   |  i |  \ | _ | _ t | i |  i t	 i
    | Sd S(   s/   Store positional arguments as runtime settings.N(   s   selfs
   check_argss   argss   valuess   _sources   _destinations   make_paths_absolutes   __dict__s   relative_path_settingss   oss   getcwd(   s   selfs   valuess   args(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   check_values  s
     c         C   s   t  } } | o* | i d  } | d j o
 t  } q; n | o* | i d  } | d j o
 t  } ql n | o |  i d  n | o
 | | j o |  i d  n | | f Sd  S(   Ni    s   -s   Maximum 2 arguments allowed.s_   Do not specify the same file for both source and destination.  It will clobber the source file.(   s   Nones   sources   destinations   argss   pops   selfs   error(   s   selfs   argss   sources   destination(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys
   check_args  s    
c         C   s   t  |  i  Sd S(   s(   Needed to get custom `Values` instances.N(   s   Valuess   selfs   defaults(   s   self(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   get_default_values,  s     ($   s   __name__s
   __module__s   __doc__s   standard_config_filess   splits   threshold_choicess
   thresholdss   booleanss   hasattrs   codecss$   default_error_encoding_error_handlers   Nones   validate_booleans   store_multiples   validate_thresholds   validate_encodings#   validate_encoding_and_error_handlers   validate_encoding_error_handlers   read_config_files   SUPPRESS_HELPs$   validate_colon_separated_string_lists   settings_specs   settings_defaultss   relative_path_settingss   config_sections   docutilss   __version__s   version_templates   __init__s   populate_from_componentss   get_standard_config_filess   get_standard_config_settingss   get_config_file_settingss   check_valuess
   check_argss   get_default_values(    (    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   OptionParser   sD   
   3 W 
       ! 	 %	'					s   ConfigParserc           B   sn   t  Z h  d d d f <d d d f <d d d f <Z d Z d	   Z d
   Z d   Z d   Z d   Z RS(   Ns   pep_stylesheets   pep_html writers
   stylesheets   pep_stylesheet_paths   stylesheet_paths   pep_templates   templates  
The "[option]" section is deprecated.  Support for old-format configuration
files may be removed in a future Docutils release.  Please revise your
configuration files.  See <http://docutils.sf.net/docs/user/config.html>,
section "Old-Format Configuration Files".
c         C   s   t  |  t i t i f j o | g } n xR | D]J } t i i |  |  |  i
 d  o |  i |  n |  i | |  q3 Wd  S(   Ns   options(   s   types	   filenamess   typess
   StringTypes   UnicodeTypes   filenames   CPs   ConfigParsers   reads   selfs   has_sections   handle_old_configs   validate_settingss   option_parser(   s   selfs	   filenamess   option_parsers   filename(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   readA  s     c         C   s   t  i |  i t | d  |  i d  } |  i d  o |  i	 d  n x | i
   D] \ } } |  i i |  o9 |  i | \ } } |  i |  o |  i	 |  q n d } | } |  i | |  o |  i | | |  qW qW W|  i d  d  S(   Ni    s   optionss   general(   s   warningss   warn_explicits   selfs   old_warnings   ConfigDeprecationWarnings   filenames   get_sections   optionss   has_sections   add_sections   itemss   keys   values   old_settingss   has_keys   sections   settings
   has_options   sets   remove_section(   s   selfs   filenames   values   settings   keys   sections   options(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   handle_old_configJ  s     
 c   	   
   C   s   x |  i   D] } x |  i |  D] } | i i |  } | o |  i | | d d } y" | | | | d |  d | } WnP t j
 oD } t d | | | i i | | | f  t t i   d f  n X|  i | | |  q# q# Wq Wd S(   s7   Call the validator function on all applicable settings.s   rawi   s   config_parsers   config_sectionsE   Error in config file "%s", section "[%s]":
    %s: %s
        %s = %si   N(   s   selfs   sectionss   sections   optionss   settings   option_parsers
   validatorss   gets	   validators   values	   new_values	   Exceptions   errors
   ValueErrors   filenames	   __class__s   __name__s   Nones   syss   exc_infos   set(	   s   selfs   filenames   option_parsers   sections   errors   values   settings	   new_values	   validator(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   validate_settings\  s       @c         C   s   | i   i d d  Sd S(   sW   
        Transform '-' to '_' so the cmdline form of option names can be used.
        s   -s   _N(   s	   optionstrs   lowers   replace(   s   selfs	   optionstr(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   optionxformo  s     c         C   sX   h  } |  i |  o: x7 |  i |  D]" } |  i | | d d | | <q& Wn | Sd S(   sf   
        Return a given section as a dictionary (empty if the section
        doesn't exist).
        s   rawi   N(   s   section_dicts   selfs   has_sections   sections   optionss   options   get(   s   selfs   sections   section_dicts   option(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   get_sectionu  s      $(	   s   __name__s
   __module__s   old_settingss   old_warnings   reads   handle_old_configs   validate_settingss   optionxforms   get_section(    (    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   ConfigParser1  s   3 					s   ConfigDeprecationWarningc           B   s   t  Z d  Z RS(   s3   Warning for deprecated configuration file features.(   s   __name__s
   __module__s   __doc__(    (    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   ConfigDeprecationWarning  s   (    s   __doc__s   __docformat__s   oss   os.paths   syss   typess   copys   warningss   ConfigParsers   CPs   codecss   docutilss   optparses   Valuess   SUPPRESS_HELPs   store_multiples   read_config_files   Nones   validate_encodings   validate_encoding_error_handlers#   validate_encoding_and_error_handlers   validate_booleans   validate_thresholds$   validate_colon_separated_string_lists   validate_url_trailing_slashs   make_paths_absolutes   make_one_path_absolutes   Options   OptionParsers   SettingsSpecs   DeprecationWarnings   ConfigDeprecationWarning(   s   validate_booleans   make_paths_absolutes   __docformat__s$   validate_colon_separated_string_lists   store_multiples   copys   Options   validate_url_trailing_slashs   docutilss#   validate_encoding_and_error_handlers   OptionParsers   make_one_path_absolutes   warningss   optparses   validate_encoding_error_handlers   validate_thresholds   Valuess   read_config_files   codecss   CPs   typess   ConfigParsers   SUPPRESS_HELPs   syss   validate_encodings   ConfigDeprecationWarnings   os(    (    sF   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/frontend.pys   ?   s:   												


			 TP