<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/960389c9ce3b1353e207b0c238940c379e16702e">https://github.com/macports/macports-ports/commit/960389c9ce3b1353e207b0c238940c379e16702e</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 960389c9ce3 python pg: prepare for python310
</span>960389c9ce3 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 960389c9ce3b1353e207b0c238940c379e16702e
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Tue Dec 22 15:54:01 2020 +1100

<span style='display:block; white-space:pre;color:#404040;'>    python pg: prepare for python310
</span>---
 _resources/port1.0/group/python-1.0.tcl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/python-1.0.tcl b/_resources/port1.0/group/python-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 1d5076c0a83..bea46573b59 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/python-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/python-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,7 +64,7 @@ default python.consistent_destroot yes
</span> 
 proc python_get_version {} {
     if {[string match py-* [option name]]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        return [string range [option subport] 2 3]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        return [string range [option subport] 2 [string first "-" [option subport]]-1]
</span>     } else {
         return [option python.default_version]
     }
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -269,8 +269,8 @@ proc python_set_default_version {option action args} {
</span> 
 options python.branch python.prefix python.bin python.lib python.libdir \
         python.include python.pkgd python.pep517
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# for pythonXY, python.branch is X.Y
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default python.branch   {[string range ${python.version} 0 end-1].[string index ${python.version} end]}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# for pythonXY, python.branch is X.Y, for pythonXYZ, it's X.YZ
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default python.branch   {[string index ${python.version} 0].[string range ${python.version} 1 end]}
</span> default python.prefix   {${frameworks_dir}/Python.framework/Versions/${python.branch}}
 default python.bin      {${python.prefix}/bin/python${python.branch}}
 default python.lib      {${python.prefix}/Python}
</pre><pre style='margin:0'>

</pre>