Skip to content

Commit

Permalink
deploy: af0e435
Browse files Browse the repository at this point in the history
  • Loading branch information
bulricht committed May 27, 2024
1 parent 4d7d02e commit b52bbd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
4 changes: 2 additions & 2 deletions _modules/pysubyt/sinks.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ <h1>Source code for pysubyt.sinks</h1><div class="highlight"><pre>
<div class="viewcode-block" id="SingleFileSink.open">
<a class="viewcode-back" href="../../pysubyt.html#pysubyt.sinks.SingleFileSink.open">[docs]</a>
<span class="k">def</span> <span class="nf">open</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_fopen</span> <span class="o">=</span> <span class="nb">open</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_file_path</span><span class="p">,</span> <span class="s2">&quot;w&quot;</span><span class="p">)</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">_fopen</span> <span class="o">=</span> <span class="nb">open</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_file_path</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></div>


<div class="viewcode-block" id="SingleFileSink.close">
Expand Down Expand Up @@ -362,7 +362,7 @@ <h1>Source code for pysubyt.sinks</h1><div class="highlight"><pre>
<span class="k">return</span>
<span class="n">assert_writable</span><span class="p">(</span><span class="n">file_path</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">_force_output</span><span class="p">)</span>
<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Creating </span><span class="si">{</span><span class="n">file_path</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">file_path</span><span class="p">,</span> <span class="s2">&quot;w&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">file_path</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">f</span><span class="p">:</span>
<span class="n">f</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">part</span><span class="p">)</span>

<div class="viewcode-block" id="PatternedFileSink.add">
Expand Down

0 comments on commit b52bbd9

Please sign in to comment.