Commit 7a8748ee authored by ussrhero's avatar ussrhero
Browse files

fixed issue #8 ( AttributeError: 'dbgin' object has no attribute 'isatty' )

parent 83e1f105
......@@ -106,11 +106,21 @@ public:
return false;
}
bool isatty() {
return false;
}
std::wstring encoding() {
return L"ascii";
}
public:
BEGIN_PYTHON_METHOD_MAP(DbgIn, "dbgin")
PYTHON_METHOD0("readline", readline, "readline");
PYTHON_PROPERTY("closed", closed, "closed");
PYTHON_PROPERTY("encoding", encoding, "encoding");
PYTHON_METHOD0("isatty", isatty, "isatty");
END_PYTHON_METHOD_MAP
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment