Skip to content

Commit

Permalink
Fixes Minor styling error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpdev committed May 6, 2022
1 parent 4bace5d commit b331a19
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion docs/search/search_index.json

Large diffs are not rendered by default.

Binary file modified docs/sitemap.xml.gz
Binary file not shown.
5 changes: 0 additions & 5 deletions docs/source/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8334,7 +8334,6 @@ <h4 id="torrentfile.recheck.HashChecker" class="doc doc-heading">
<span class="k">else</span><span class="p">:</span>
<span class="n">size</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">length</span>
<span class="bp">self</span><span class="o">.</span><span class="n">length</span> <span class="o">-=</span> <span class="bp">self</span><span class="o">.</span><span class="n">length</span>
<span class="k">assert</span> <span class="n">size</span> <span class="o">&gt;=</span> <span class="mi">0</span>
<span class="k">return</span> <span class="n">piece</span><span class="p">,</span> <span class="n">size</span>
</code></pre></div>
</details>
Expand Down Expand Up @@ -8701,7 +8700,6 @@ <h5 id="torrentfile.recheck.HashChecker.advance" class="doc doc-heading">
<span class="k">else</span><span class="p">:</span>
<span class="n">size</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">length</span>
<span class="bp">self</span><span class="o">.</span><span class="n">length</span> <span class="o">-=</span> <span class="bp">self</span><span class="o">.</span><span class="n">length</span>
<span class="k">assert</span> <span class="n">size</span> <span class="o">&gt;=</span> <span class="mi">0</span>
<span class="k">return</span> <span class="n">piece</span><span class="p">,</span> <span class="n">size</span>
</code></pre></div>
</details>
Expand Down Expand Up @@ -19136,7 +19134,6 @@ <h3 id="torrentfile.recheck.HashChecker" class="doc doc-heading">
<span class="k">else</span><span class="p">:</span>
<span class="n">size</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">length</span>
<span class="bp">self</span><span class="o">.</span><span class="n">length</span> <span class="o">-=</span> <span class="bp">self</span><span class="o">.</span><span class="n">length</span>
<span class="k">assert</span> <span class="n">size</span> <span class="o">&gt;=</span> <span class="mi">0</span>
<span class="k">return</span> <span class="n">piece</span><span class="p">,</span> <span class="n">size</span>
</code></pre></div>
</details>
Expand Down Expand Up @@ -19503,7 +19500,6 @@ <h4 id="torrentfile.recheck.HashChecker.advance" class="doc doc-heading">
<span class="k">else</span><span class="p">:</span>
<span class="n">size</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">length</span>
<span class="bp">self</span><span class="o">.</span><span class="n">length</span> <span class="o">-=</span> <span class="bp">self</span><span class="o">.</span><span class="n">length</span>
<span class="k">assert</span> <span class="n">size</span> <span class="o">&gt;=</span> <span class="mi">0</span>
<span class="k">return</span> <span class="n">piece</span><span class="p">,</span> <span class="n">size</span>
</code></pre></div>
</details>
Expand Down Expand Up @@ -28301,7 +28297,6 @@ <h4 id="tests.test_torrent.test_torrentfile_one_empty" class="doc doc-heading">
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Test creating a torrent meta file with given directory plus extra.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="n">a</span> <span class="o">=</span> <span class="nb">next</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">walk</span><span class="p">(</span><span class="n">dir2</span><span class="p">))</span>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">a</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">])</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">a</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">a</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">][</span><span class="mi">0</span><span class="p">]),</span> <span class="s2">&quot;w&quot;</span><span class="p">,</span> <span class="n">encoding</span><span class="o">=</span><span class="s2">&quot;utf-8&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">_</span><span class="p">:</span>
Expand Down
1 change: 0 additions & 1 deletion tests/test_torrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def test_torrentfile_one_empty(dir2, version):
"""
Test creating a torrent meta file with given directory plus extra.
"""

a = next(os.walk(dir2))
if len(a[-1]) > 0:
with open(os.path.join(a[0], a[-1][0]), "w", encoding="utf-8") as _:
Expand Down
1 change: 0 additions & 1 deletion torrentfile/recheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,5 +619,4 @@ def advance(self):
else:
size = self.length
self.length -= self.length
assert size >= 0
return piece, size

0 comments on commit b331a19

Please sign in to comment.