%PDF- %PDF-
Direktori : /proc/self/root/usr/lib/python2.7/site-packages/paramiko/ |
Current File : //proc/self/root/usr/lib/python2.7/site-packages/paramiko/config.pyo |
� =OXc @ sx d Z d d l Z d d l Z d d l Z d d l Z d d l Z d Z d e f d � � YZ d e f d � � YZ d S( s2 Configuration file (aka ``ssh_config``) support. i����Ni t SSHConfigc B s\ e Z d Z e j d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� Representation of config information as stored in the format used by OpenSSH. Queries can be made via `lookup`. The format is described in OpenSSH's ``ssh_config`` man page. This class is provided primarily as a convenience to posix users (since the OpenSSH format is a de-facto standard on posix) but should work fine on Windows too. .. versionadded:: 1.6 s (\w+)(?:\s*=\s*|\s+)(.+)c C s g | _ d S( s5 Create a new OpenSSH config object. N( t _config( t self( ( s3 /usr/lib/python2.7/site-packages/paramiko/config.pyt __init__. s c C s� i d g d 6i d 6} x�| D]�} | j � } | s | j d � rL q n t j | j | � } | sz t d | � � n | j d � j � } | j d � } | d k r� | j j | � i | j | � d 6i d 6} q | d k r | j � d k r d | d | <q | j d � r7| j d � r7| d d !} n | d k r| | d k rk| d | j | � q�| g | d | <q | | d k r | | d | <q q W| j j | � d S( s� Read an OpenSSH config from the given file object. :param file_obj: a file-like object to read the config file from t *t hostt configt #s Unparsable line %si i t proxycommandt nonet "i����t identityfilet localforwardt remoteforwardN( R R R ( t stript startswitht ret matcht SETTINGS_REGEXt Exceptiont groupt lowerR t appendt _get_hostst Nonet endswith( R t file_objR t lineR t keyt value( ( s3 /usr/lib/python2.7/site-packages/paramiko/config.pyt parse4 s4 c C s� g | j D]"