Skip to content

Commit

Permalink
deploy: a2f6699
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Dec 18, 2023
1 parent 6d3a2cc commit f84ae73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _modules/bumpversion/config/files_legacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ <h1>Source code for bumpversion.config.files_legacy</h1><div class="highlight"><
<span class="n">section_parts</span> <span class="o">=</span> <span class="n">section_name</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s2">&quot;:&quot;</span><span class="p">)</span>
<span class="n">num_parts</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="n">section_parts</span><span class="p">)</span>
<span class="n">options</span> <span class="o">=</span> <span class="p">{</span><span class="n">key</span><span class="p">:</span> <span class="n">autocast</span><span class="o">.</span><span class="n">autocast_value</span><span class="p">(</span><span class="n">val</span><span class="p">)</span> <span class="k">for</span> <span class="n">key</span><span class="p">,</span> <span class="n">val</span> <span class="ow">in</span> <span class="n">config_parser</span><span class="o">.</span><span class="n">items</span><span class="p">(</span><span class="n">section_name</span><span class="p">)}</span>
<span class="k">if</span> <span class="s2">&quot;current_version&quot;</span> <span class="ow">in</span> <span class="n">options</span><span class="p">:</span>
<span class="n">options</span><span class="p">[</span><span class="s2">&quot;current_version&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">options</span><span class="p">[</span><span class="s2">&quot;current_version&quot;</span><span class="p">])</span>

<span class="k">if</span> <span class="n">num_parts</span> <span class="o">==</span> <span class="mi">1</span><span class="p">:</span> <span class="c1"># bumpversion section</span>
<span class="n">bumpversion_options</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">options</span><span class="p">)</span>
Expand Down

0 comments on commit f84ae73

Please sign in to comment.