From 8c09b1f4a73c28b4e45795c330d488c2f2d6b414 Mon Sep 17 00:00:00 2001 From: Marcus Edel Date: Tue, 22 Jun 2021 12:47:25 -0400 Subject: [PATCH] Apply suggestions from code review. Co-authored-by: Ryan Curtin --- src/mlpack/bindings/python/print_class_defn.hpp | 6 +++--- src/mlpack/bindings/python/print_pyx.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mlpack/bindings/python/print_class_defn.hpp b/src/mlpack/bindings/python/print_class_defn.hpp index 73b2a1fa68..158ae0ce7d 100644 --- a/src/mlpack/bindings/python/print_class_defn.hpp +++ b/src/mlpack/bindings/python/print_class_defn.hpp @@ -130,13 +130,13 @@ void PrintClassDefn( std::cout << " def get_cpp_params(self, return_str=False):" << std::endl; std::cout << " params = self._get_cpp_params()" << std::endl; std::cout << " return process_params_out(self, params, " - << "return_str=return_str)" << std::endl; + << "return_str=return_str)" << std::endl; std::cout << std::endl; std::cout << " def set_cpp_params(self, params_dic):" << std::endl; std::cout << " params_str = process_params_in(self, params_dic)" - << std::endl; + << std::endl; std::cout << " self._set_cpp_params(params_str.encode(\"utf-8\"))" - << std::endl; + << std::endl; std::cout << std::endl; } diff --git a/src/mlpack/bindings/python/print_pyx.cpp b/src/mlpack/bindings/python/print_pyx.cpp index 6fd4899c3e..4fcda954e9 100644 --- a/src/mlpack/bindings/python/print_pyx.cpp +++ b/src/mlpack/bindings/python/print_pyx.cpp @@ -81,7 +81,7 @@ void PrintPYX(const util::BindingDetails& doc, << "ResetTimers, EnableTimers" << endl; cout << "from matrix_utils import to_matrix, to_matrix_with_info" << endl; cout << "from preprocess_json_params import process_params_out, " - << "process_params_in" << endl; + << "process_params_in" << endl; cout << "from serialization cimport SerializeIn, SerializeOut, " << "SerializeOutJSON, SerializeInJSON" << endl; cout << endl;