--- 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<writer::RelationalWriter> relationalWriter;
@@ -63,7 +63,7 @@
public:
- GrepHandler(ostream& output, const vector<string_t>& arguments) {
+ PythonHandler(ostream& output, const vector<string_t>& 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);
}
--- 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<RelationalReader> reader(Factory::create(std::cin));
- GrepHandler handler(std::cout, cli.arguments());
+ PythonHandler handler(std::cout, cli.arguments());
reader->addHandler(&handler);
reader->process();