##// END OF EJS Templates
test-highlight: unify normalization rule of pygments output...
Yuya Nishihara -
r27995:834d27c4 default
parent child Browse files
Show More
@@ -191,7 +191,7 b' hgweb filerevision, html'
191 hgweb fileannotate, html
191 hgweb fileannotate, html
192
192
193 $ (get-with-headers.py localhost:$HGPORT 'annotate/tip/primes.py') \
193 $ (get-with-headers.py localhost:$HGPORT 'annotate/tip/primes.py') \
194 > | sed "s/class=\"k\"/class=\"kn\"/g" | sed "s/class=\"mi\"/class=\"mf\"/g"
194 > | sed "s/class=\"k\"/class=\"kn\"/g" | sed "s/class=\"mf\"/class=\"mi\"/g"
195 200 Script output follows
195 200 Script output follows
196
196
197 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
197 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -408,7 +408,7 b' hgweb fileannotate, html'
408 <a href="/annotate/06824edf55d0/primes.py#l18"
408 <a href="/annotate/06824edf55d0/primes.py#l18"
409 title="06824edf55d0: a">test@0</a>
409 title="06824edf55d0: a">test@0</a>
410 </td>
410 </td>
411 <td class="source"><a href="#l18"> 18</a> <span class="n">ns</span> <span class="o">=</span> <span class="n">ifilter</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">n</span> <span class="o">%</span> <span class="n">p</span> <span class="o">!=</span> <span class="mf">0</span><span class="p">,</span> <span class="n">ns</span><span class="p">)</span></td>
411 <td class="source"><a href="#l18"> 18</a> <span class="n">ns</span> <span class="o">=</span> <span class="n">ifilter</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">n</span> <span class="o">%</span> <span class="n">p</span> <span class="o">!=</span> <span class="mi">0</span><span class="p">,</span> <span class="n">ns</span><span class="p">)</span></td>
412 </tr>
412 </tr>
413 <tr id="l19">
413 <tr id="l19">
414 <td class="annotate">
414 <td class="annotate">
@@ -436,14 +436,14 b' hgweb fileannotate, html'
436 <a href="/annotate/06824edf55d0/primes.py#l22"
436 <a href="/annotate/06824edf55d0/primes.py#l22"
437 title="06824edf55d0: a">test@0</a>
437 title="06824edf55d0: a">test@0</a>
438 </td>
438 </td>
439 <td class="source"><a href="#l22"> 22</a> <span class="n">odds</span> <span class="o">=</span> <span class="n">ifilter</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">i</span><span class="p">:</span> <span class="n">i</span> <span class="o">%</span> <span class="mf">2</span> <span class="o">==</span> <span class="mf">1</span><span class="p">,</span> <span class="n">count</span><span class="p">())</span></td>
439 <td class="source"><a href="#l22"> 22</a> <span class="n">odds</span> <span class="o">=</span> <span class="n">ifilter</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">i</span><span class="p">:</span> <span class="n">i</span> <span class="o">%</span> <span class="mi">2</span> <span class="o">==</span> <span class="mi">1</span><span class="p">,</span> <span class="n">count</span><span class="p">())</span></td>
440 </tr>
440 </tr>
441 <tr id="l23">
441 <tr id="l23">
442 <td class="annotate">
442 <td class="annotate">
443 <a href="/annotate/06824edf55d0/primes.py#l23"
443 <a href="/annotate/06824edf55d0/primes.py#l23"
444 title="06824edf55d0: a">test@0</a>
444 title="06824edf55d0: a">test@0</a>
445 </td>
445 </td>
446 <td class="source"><a href="#l23"> 23</a> <span class="kn">return</span> <span class="n">chain</span><span class="p">([</span><span class="mf">2</span><span class="p">],</span> <span class="n">sieve</span><span class="p">(</span><span class="n">dropwhile</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">n</span> <span class="o">&lt;</span> <span class="mf">3</span><span class="p">,</span> <span class="n">odds</span><span class="p">)))</span></td>
446 <td class="source"><a href="#l23"> 23</a> <span class="kn">return</span> <span class="n">chain</span><span class="p">([</span><span class="mi">2</span><span class="p">],</span> <span class="n">sieve</span><span class="p">(</span><span class="n">dropwhile</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">n</span> <span class="o">&lt;</span> <span class="mi">3</span><span class="p">,</span> <span class="n">odds</span><span class="p">)))</span></td>
447 </tr>
447 </tr>
448 <tr id="l24">
448 <tr id="l24">
449 <td class="annotate">
449 <td class="annotate">
@@ -478,7 +478,7 b' hgweb fileannotate, html'
478 <a href="/annotate/06824edf55d0/primes.py#l28"
478 <a href="/annotate/06824edf55d0/primes.py#l28"
479 title="06824edf55d0: a">test@0</a>
479 title="06824edf55d0: a">test@0</a>
480 </td>
480 </td>
481 <td class="source"><a href="#l28"> 28</a> <span class="n">n</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mf">1</span><span class="p">])</span></td>
481 <td class="source"><a href="#l28"> 28</a> <span class="n">n</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span></td>
482 </tr>
482 </tr>
483 <tr id="l29">
483 <tr id="l29">
484 <td class="annotate">
484 <td class="annotate">
@@ -492,7 +492,7 b' hgweb fileannotate, html'
492 <a href="/annotate/06824edf55d0/primes.py#l30"
492 <a href="/annotate/06824edf55d0/primes.py#l30"
493 title="06824edf55d0: a">test@0</a>
493 title="06824edf55d0: a">test@0</a>
494 </td>
494 </td>
495 <td class="source"><a href="#l30"> 30</a> <span class="n">n</span> <span class="o">=</span> <span class="mf">10</span></td>
495 <td class="source"><a href="#l30"> 30</a> <span class="n">n</span> <span class="o">=</span> <span class="mi">10</span></td>
496 </tr>
496 </tr>
497 <tr id="l31">
497 <tr id="l31">
498 <td class="annotate">
498 <td class="annotate">
General Comments 0
You need to be logged in to leave comments. Login now