OwlCyberSecurity - MANAGER
Edit File: hosts.pyc
� `��ac @` s� d Z d d l m Z m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d � Z d � Z d e j f d � � YZ d S( s hosts(5) support. i ( t divisiont absolute_import( t nativeString( t dns( t failure( t FilePath( t defer( t isIPAddress( t commonc C` s� g } y | j � j � } Wn | SX| j � } x� | D]� } | j d � } | d k rh | | } n | st q: n | j � } | j � g | d D] } | j � ^ q� k r: | j t | d � � q: q: W| S( s� Search the given file, which is in hosts(5) standard format, for an address entry with a given name. @param hostsFile: The name of the hosts(5)-format file to search. @type hostsFile: L{FilePath} @param name: The name to search for. @type name: C{bytes} @return: L{None} if the name is not found in the file, otherwise a C{str} giving the address in the file associated with the name. t #i����i i ( t getContentt splitlinest lowert findt splitt appendR ( t hostsFilet namet resultst linest linet idxt partst s( ( sV /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/names/hosts.pyt searchFileForAll s /c C` s'