You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by yu...@apache.org on 2020/09/14 16:12:41 UTC

[thrift] branch master updated: Fixed double newline at end of generated python service files (#2236)

This is an automated email from the ASF dual-hosted git repository.

yuxuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new 304f50b  Fixed double newline at end of generated python service files (#2236)
304f50b is described below

commit 304f50b39fbb1f6a66c1bb76cf88a135d015fda9
Author: Jonathan Mackenzie <jo...@gmail.com>
AuthorDate: Tue Sep 15 01:41:07 2020 +0930

    Fixed double newline at end of generated python service files (#2236)
    
    Generated python files have a blank line at the end of files, except for
    service files where there are two blank lines, this change makes these
    service files consistent.
    
    This change is trivial and thus does not require a ticket.
---
 compiler/cpp/src/thrift/generate/t_py_generator.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/cpp/src/thrift/generate/t_py_generator.cc b/compiler/cpp/src/thrift/generate/t_py_generator.cc
index 224ff6a..fe40fc2 100644
--- a/compiler/cpp/src/thrift/generate/t_py_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_py_generator.cc
@@ -1172,7 +1172,7 @@ void t_py_generator::generate_service(t_service* tservice) {
 
   // Close service file
   f_service_ << "fix_spec(all_structs)" << endl
-             << "del all_structs" << endl << endl;
+             << "del all_structs" << endl;
   f_service_.close();
 }