gabrielmagno opened a new pull request #314:
URL: https://github.com/apache/incubator-livy/pull/314


   ## What changes were proposed in this pull request?
   
   A mock for the `ast.Module` is created in case of running older Python 
versions (< 3.8). The mocked module will ignore the new `type_ignores` 
parameter, and pass only the first parameter to the old module.
   
   As already mentioned by Shiquan Wang (the issue reporter), Python 3.8 
introduced a change in the API 
(https://github.com/python/cpython/pull/11645/files), and IPython had a similar 
problem. The strategy used for this fix is similar to the one utilized by 
IPython in this PR: https://github.com/ipython/ipython/pull/11593 
   
   JIRA: https://issues.apache.org/jira/projects/LIVY/issues/LIVY-795
   
   ## How was this patch tested?
   
   Tested locally, using Jupyter notebook to run pyspark commands.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to