[0.3.x] fixed : issue #13898 ( sys.stdout.isatty() raises AttributeError )

git-svn-id: https://pykd.svn.codeplex.com/svn@90981 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2016-04-28 09:09:46 +00:00 committed by Mikhail I. Izmestev
parent 533c0af724
commit 4d0b0cd917
4 changed files with 12 additions and 2 deletions

View File

@ -75,6 +75,10 @@ public:
bool closed() {
return false;
}
bool isatty() {
return false;
}
};
///////////////////////////////////////////////////////////////////////////////

View File

@ -204,8 +204,9 @@ BOOST_PYTHON_MODULE( pykd )
// Python debug output console helper classes
python::class_<DbgOut>( "dout", "dout", python::no_init )
.def( "write", &DbgOut::write )
.def( "writedml", &DbgOut::writedml)
.def( "writedml", &DbgOut::writedml )
.def( "flush", &DbgOut::flush )
.def( "isatty", &DbgOut::isatty )
.add_property( "encoding", &DbgOut::encoding )
.add_property( "closed", &DbgOut::closed );

View File

@ -3,7 +3,7 @@
#define PYKDEXT_VERSION_MAJOR 1
#define PYKDEXT_VERSION_MINOR 0
#define PYKDEXT_VERSION_SUBVERSION 1
#define PYKDEXT_VERSION_BUILDNO 13
#define PYKDEXT_VERSION_BUILDNO 14
#define __VER_STR2__(x) #x
#define __VER_STR1__(x) __VER_STR2__(x)

View File

@ -78,6 +78,10 @@ public:
return false;
}
bool isatty() {
return false;
}
private:
CComQIPtr<IDebugControl4> m_control;
@ -261,6 +265,7 @@ private:
.def("write", &DbgOut::write)
.def("writedml", &DbgOut::writedml)
.def("flush", &DbgOut::flush)
.def("isatty", &DbgOut::isatty)
.add_property("encoding", &DbgOut::encoding)
.add_property("closed", &DbgOut::closed);