Code0x58 commented on pull request #3598:
URL: https://github.com/apache/incubator-heron/pull/3598#issuecomment-678482025


   Thanks @huijunwu! I just pushed a change to avoid triggering that existing 
issue, which hopefully wasn't causing anything or relied on.
   
   An example of what causes that `RuntimeWarning`:
   ```
   $ tree
   .
   └── a
       ├── b.py
       └── __init__.py
   $ cat a/__init__.py
   print("import a")
   from . import b
   $ cat a/b.py
   print("import b")
   if __name__ == "__main__":
       print("run b")
   $ python -m a.b
   import a
   import b
   /usr/lib/python3.8/runpy.py:126: RuntimeWarning: 'a.b' found in sys.modules 
after import of package 'a', but prior to execution of 'a.b'; this may result 
in unpredictable behaviour
     warn(RuntimeWarning(msg))
   import b
   run b
   ```


----------------------------------------------------------------
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