Blame doc/html/api/lxml-pysrc.html

rpm-build d9acb6
rpm-build d9acb6
rpm-build d9acb6
          "DTD/xhtml1-transitional.dtd">
rpm-build d9acb6
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
rpm-build d9acb6
<head>
rpm-build d9acb6
  <title>lxml</title>
rpm-build d9acb6
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
rpm-build d9acb6
  <script type="text/javascript" src="epydoc.js"></script>
rpm-build d9acb6
</head>
rpm-build d9acb6
rpm-build d9acb6
rpm-build d9acb6
      alink="#204080">
rpm-build d9acb6
rpm-build d9acb6
rpm-build d9acb6
       bgcolor="#a0c0ff" cellspacing="0">
rpm-build d9acb6
  
rpm-build d9acb6
  
rpm-build d9acb6
      
rpm-build d9acb6
          >   Home   
rpm-build d9acb6
rpm-build d9acb6
  
rpm-build d9acb6
         
rpm-build d9acb6
        href="module-tree.html">Trees   
rpm-build d9acb6
rpm-build d9acb6
  
rpm-build d9acb6
         
rpm-build d9acb6
        href="identifier-index.html">Indices   
rpm-build d9acb6
rpm-build d9acb6
  
rpm-build d9acb6
         
rpm-build d9acb6
        href="help.html">Help   
rpm-build d9acb6
rpm-build d9acb6
  
rpm-build d9acb6
      
rpm-build d9acb6
        
rpm-build d9acb6
          
rpm-build d9acb6
            >lxml API
rpm-build d9acb6
          
rpm-build d9acb6
  
rpm-build d9acb6
rpm-build d9acb6
rpm-build d9acb6
  
rpm-build d9acb6
    
rpm-build d9acb6
      
rpm-build d9acb6
        Package lxml
rpm-build d9acb6
      
rpm-build d9acb6
    
rpm-build d9acb6
    
rpm-build d9acb6
      
rpm-build d9acb6
        
rpm-build d9acb6
        [
rpm-build d9acb6
    onclick="toggle_private();">hide private]
rpm-build d9acb6
        
rpm-build d9acb6
            >[frames
rpm-build d9acb6
            >] | 
rpm-build d9acb6
            target="_top">no frames]
rpm-build d9acb6
      
rpm-build d9acb6
    
rpm-build d9acb6
  
rpm-build d9acb6
rpm-build d9acb6

Source Code for Package lxml

rpm-build d9acb6
rpm-build d9acb6
<tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-comment"># this is a package</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno"> 2</tt>  <tt class="py-line"> </tt>
rpm-build d9acb6
<tt class="py-lineno"> 3</tt> -<tt class="py-line"><tt class="py-keyword">def</tt> get_include<tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno"> 4</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-docstring">    Returns a list of header include paths (for lxml itself, libxml2</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-docstring">    and libxslt) needed to compile C code against lxml if it was built</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-docstring">    with statically linked libraries.</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno"> 9</tt>  <tt class="py-line">    <tt class="py-keyword">import</tt> <tt class="py-name">os</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno">10</tt>  <tt class="py-line">    <tt class="py-name">lxml_path</tt> <tt class="py-op">=</tt> <tt class="py-name">__path__</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno">11</tt>  <tt class="py-line">    <tt class="py-name">include_path</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Variable lxml.etree.XPath.path=lxml.etree.XPath-class.html#path,Variable lxml.etree._LogEntry.path=lxml.etree._LogEntry-class.html#path">
rpm-build d9acb6
lxml.etree._LogEntry.path" class="py-name" href="#" onclick="return doclink('link-0', 'path', 'link-0');">path</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">lxml_path</tt><tt class="py-op">,</tt> <tt class="py-string">'includes'</tt><tt class="py-op">)</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno">12</tt>  <tt class="py-line">    <tt id="link-1" class="py-name" targets="Package lxml.includes=lxml.includes-module.html">includes</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">include_path</tt><tt class="py-op">,</tt> <tt class="py-name">lxml_path</tt><tt class="py-op">]</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno">13</tt>  <tt class="py-line"> </tt>
rpm-build d9acb6
<tt class="py-lineno">14</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt id="link-2" class="py-name" targets="Variable lxml.etree.DTD.name=lxml.etree.DTD-class.html#name,Variable lxml.etree._Entity.name=lxml.etree._Entity-class.html#name,Variable lxml.html.InputMixin.name=lxml.html.InputMixin-class.html#name,Variable lxml.objectify.PyType.name=lxml.objectify.PyType-class.html#name">
rpm-build d9acb6
lxml.etree._Entity.name
rpm-build d9acb6
lxml.html.InputMixin.name
rpm-build d9acb6
lxml.objectify.PyType.name" class="py-name" href="#" onclick="return doclink('link-2', 'name', 'link-2');">name</tt> <tt class="py-keyword">in</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">listdir</tt><tt class="py-op">(</tt><tt class="py-name">include_path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno">15</tt>  <tt class="py-line">        <tt id="link-3" class="py-name">
rpm-build d9acb6
lxml.etree._LogEntry.path" class="py-name" href="#" onclick="return doclink('link-3', 'path', 'link-0');">path</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name">
rpm-build d9acb6
lxml.etree._LogEntry.path" class="py-name" href="#" onclick="return doclink('link-4', 'path', 'link-0');">path</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">include_path</tt><tt class="py-op">,</tt> <tt id="link-5" class="py-name">
rpm-build d9acb6
lxml.etree._Entity.name
rpm-build d9acb6
lxml.html.InputMixin.name
rpm-build d9acb6
lxml.objectify.PyType.name" class="py-name" href="#" onclick="return doclink('link-5', 'name', 'link-2');">name</tt><tt class="py-op">)</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno">16</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name">
rpm-build d9acb6
lxml.etree._LogEntry.path" class="py-name" href="#" onclick="return doclink('link-6', 'path', 'link-0');">path</tt><tt class="py-op">.</tt><tt class="py-name">isdir</tt><tt class="py-op">(</tt><tt id="link-7" class="py-name">
rpm-build d9acb6
lxml.etree._LogEntry.path" class="py-name" href="#" onclick="return doclink('link-7', 'path', 'link-0');">path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno">17</tt>  <tt class="py-line">            <tt id="link-8" class="py-name">includes</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Method lxml.etree._Element.append()=lxml.etree._Element-class.html#append">append</tt><tt class="py-op">(</tt><tt id="link-10" class="py-name">
rpm-build d9acb6
lxml.etree._LogEntry.path" class="py-name" href="#" onclick="return doclink('link-10', 'path', 'link-0');">path</tt><tt class="py-op">)</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno">18</tt>  <tt class="py-line"> </tt>
rpm-build d9acb6
<tt class="py-lineno">19</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-11" class="py-name">includes</tt> </tt>
rpm-build d9acb6
<tt class="py-lineno">20</tt>  <tt class="py-line"> </tt><script type="text/javascript">
rpm-build d9acb6
rpm-build d9acb6
expandto(location.href);
rpm-build d9acb6
// -->
rpm-build d9acb6
</script>
rpm-build d9acb6
rpm-build d9acb6

rpm-build d9acb6
rpm-build d9acb6
rpm-build d9acb6
       bgcolor="#a0c0ff" cellspacing="0">
rpm-build d9acb6
  
rpm-build d9acb6
  
rpm-build d9acb6
      
rpm-build d9acb6
          >   Home   
rpm-build d9acb6
rpm-build d9acb6
  
rpm-build d9acb6
         
rpm-build d9acb6
        href="module-tree.html">Trees   
rpm-build d9acb6
rpm-build d9acb6
  
rpm-build d9acb6
         
rpm-build d9acb6
        href="identifier-index.html">Indices   
rpm-build d9acb6
rpm-build d9acb6
  
rpm-build d9acb6
         
rpm-build d9acb6
        href="help.html">Help   
rpm-build d9acb6
rpm-build d9acb6
  
rpm-build d9acb6
      
rpm-build d9acb6
        
rpm-build d9acb6
          
rpm-build d9acb6
            >lxml API
rpm-build d9acb6
          
rpm-build d9acb6
  
rpm-build d9acb6
rpm-build d9acb6
rpm-build d9acb6
  
rpm-build d9acb6
    
rpm-build d9acb6
    Generated by Epydoc 3.0.1
rpm-build d9acb6
    on Wed Jun 27 16:05:05 2018
rpm-build d9acb6
    
rpm-build d9acb6
    
rpm-build d9acb6
      
rpm-build d9acb6
        >http://epydoc.sourceforge.net
rpm-build d9acb6
    
rpm-build d9acb6
  
rpm-build d9acb6
rpm-build d9acb6
rpm-build d9acb6
<script type="text/javascript">
rpm-build d9acb6
  
rpm-build d9acb6
  // Private objects are initially displayed (because if
rpm-build d9acb6
  // javascript is turned off then we want them to be
rpm-build d9acb6
  // visible); but by default, we want to hide them.  So hide
rpm-build d9acb6
  // them unless we have a cookie that says to show them.
rpm-build d9acb6
  checkCookie();
rpm-build d9acb6
  // -->
rpm-build d9acb6
</script>
rpm-build d9acb6
</body>
rpm-build d9acb6
</html>