Alex Gaynor created THRIFT-1697:
-----------------------------------

             Summary: Generate *explicit* relative imports in Python, rather 
than implicit ones
                 Key: THRIFT-1697
                 URL: https://issues.apache.org/jira/browse/THRIFT-1697
             Project: Thrift
          Issue Type: Improvement
          Components: Python - Compiler
            Reporter: Alex Gaynor


Currently the compiler generates code that looks like:

import ttypes

Which relies on the implicit import machinery to load the module in the same 
directory.

It would be much better to use

from . import ttypes

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to