# HG changeset patch # User František Kučera # Date 1544750673 -3600 # Node ID 60a17d8fc22361d83cb125c84a1e7475f961e1eb # Parent 9ed7c3b6ad7a9c12f3fd59be4600b41fdffbf7dd fix class name diff -r 9ed7c3b6ad7a -r 60a17d8fc223 src/PythonHandler.h --- a/src/PythonHandler.h Fri Dec 14 02:03:24 2018 +0100 +++ b/src/PythonHandler.h Fri Dec 14 02:24:33 2018 +0100 @@ -46,7 +46,7 @@ using namespace relpipe::reader; using namespace relpipe::reader::handlers; -class GrepHandler : public RelationalReaderStringHadler { +class PythonHandler : public RelationalReaderStringHadler { private: shared_ptr relationalWriter; @@ -63,7 +63,7 @@ public: - GrepHandler(ostream& output, const vector& arguments) { + PythonHandler(ostream& output, const vector& arguments) { relationalWriter.reset(writer::Factory::create(output)); pythonProgramName = Py_DecodeLocale("relpipe-tr-python", NULL); @@ -79,7 +79,7 @@ } } - virtual ~GrepHandler() { + virtual ~PythonHandler() { Py_FinalizeEx(); PyMem_RawFree(pythonProgramName); } diff -r 9ed7c3b6ad7a -r 60a17d8fc223 src/relpipe-tr-python.cpp --- a/src/relpipe-tr-python.cpp Fri Dec 14 02:03:24 2018 +0100 +++ b/src/relpipe-tr-python.cpp Fri Dec 14 02:24:33 2018 +0100 @@ -47,7 +47,7 @@ try { std::shared_ptr reader(Factory::create(std::cin)); - GrepHandler handler(std::cout, cli.arguments()); + PythonHandler handler(std::cout, cli.arguments()); reader->addHandler(&handler); reader->process();