[
https://issues.apache.org/jira/browse/THRIFT-1806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nathaniel Cook updated THRIFT-1806:
-----------------------------------
Attachment: thrift-1806.patch
Fixes truncation by opening file in append mode. This will create the file if
it doesn't exist and will not overwrite existing files.
> Python generation always truncates __init__.py files
> ----------------------------------------------------
>
> Key: THRIFT-1806
> URL: https://issues.apache.org/jira/browse/THRIFT-1806
> Project: Thrift
> Issue Type: Bug
> Components: Python - Compiler
> Reporter: Nathaniel Cook
> Attachments: thrift-1806.patch
>
>
> When generating python code the generator correctly creates __init__.py file
> for each directory. If the __init__.py file has contents it is always
> overwritten. This usually isn't a problem unless using the -out flag, then
> there is a potential to erase non generated code.
--
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