<pre style='margin:0'>
Andrew Stromnov (stromnov) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1239dc1749d6d08d82e663bd3559f8932dca3b81">https://github.com/macports/macports-ports/commit/1239dc1749d6d08d82e663bd3559f8932dca3b81</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 1239dc1749d py-(parso|jedi): attempt to fix completion issue
</span>1239dc1749d is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 1239dc1749d6d08d82e663bd3559f8932dca3b81
</span>Author: Andrey Stromnov <stromnov@macports.org>
AuthorDate: Tue Sep 1 12:32:27 2020 +0300

<span style='display:block; white-space:pre;color:#404040;'>    py-(parso|jedi): attempt to fix completion issue
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/61088
</span>---
 python/py-jedi/Portfile                                       |  4 ++++
 .../py-jedi/files/patch-jedi_inference_value_module.py.diff   | 11 +++++++++++
 python/py-jedi/files/patch-jedi_parser_utils.py.diff          | 11 +++++++++++
 python/py-parso/Portfile                                      |  4 +++-
 python/py-parso/files/patch-parso_cache.py.diff               | 11 +++++++++++
 5 files changed, 40 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-jedi/Portfile b/python/py-jedi/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 14b701af592..67fc87e0a02 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-jedi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-jedi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,7 @@ PortGroup           python 1.0
</span> 
 name                py-jedi
 version             0.17.2
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> categories-append   devel
 platforms           darwin
 license             MIT
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,5 +30,8 @@ if {${name} ne ${subport}} {
</span> 
     depends_lib-append  port:py${python.version}-parso
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles-append   patch-jedi_parser_utils.py.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        patch-jedi_inference_value_module.py.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     livecheck.type      none
 }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-jedi/files/patch-jedi_inference_value_module.py.diff b/python/py-jedi/files/patch-jedi_inference_value_module.py.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..ae94a4aa991
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-jedi/files/patch-jedi_inference_value_module.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- jedi/inference/value/module.py.orig    2020-09-01 12:15:17.000000000 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ jedi/inference/value/module.py 2020-09-01 12:16:25.000000000 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -150,7 +150,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         if file_io is None:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             self._path = None
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         else:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            self._path = file_io.path
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++            self._path = str(file_io.path)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         self.string_names = string_names  # Optional[Tuple[str, ...]]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         self.code_lines = code_lines
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         self._is_package = is_package
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-jedi/files/patch-jedi_parser_utils.py.diff b/python/py-jedi/files/patch-jedi_parser_utils.py.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d1ee33cbf44
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-jedi/files/patch-jedi_parser_utils.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- jedi/parser_utils.py.orig      2020-09-01 10:57:58.000000000 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ jedi/parser_utils.py   2020-09-01 10:58:17.000000000 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -277,7 +277,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     Basically access the cached code lines in parso. This is not the nicest way
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     to do this, but we avoid splitting all the lines again.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     """
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    return parser_cache[grammar._hashed][path].lines
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    return parser_cache[grammar._hashed][str(path)].lines
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def cut_value_at_position(leaf, position):
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-parso/Portfile b/python/py-parso/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 94d6f3a8cd5..2023125b870 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-parso/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-parso/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup           python 1.0
</span> 
 name                py-parso
 version             0.8.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> categories-append   devel
 platforms           darwin
 license             MIT
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -38,6 +38,8 @@ if {${name} ne ${subport}} {
</span>         checksums           rmd160  acc080335b1228df041a54e944f3f63bec3c3d38 \
                             sha256  caba44724b994a8a5e086460bb212abc5a8bc46951bf4a9a1210745953622eb9 \
                             size    400854
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        patchfiles-append   patch-parso_cache.py.diff
</span>     }
 
     test.run            yes
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-parso/files/patch-parso_cache.py.diff b/python/py-parso/files/patch-parso_cache.py.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..f3cf0ddc7ae
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-parso/files/patch-parso_cache.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- parso/cache.py.orig    2020-09-01 10:53:38.000000000 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ parso/cache.py 2020-09-01 10:54:09.000000000 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -166,7 +166,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                 if node_item.last_used > cutoff_time
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    parser_cache.setdefault(hashed_grammar, {})[path] = module_cache_item
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    parser_cache.setdefault(hashed_grammar, {})[str(path)] = module_cache_item
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def try_to_save_module(hashed_grammar, file_io, module, lines, pickling=True, cache_path=None):
</span></pre><pre style='margin:0'>

</pre>