mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-17 01:13:24 +08:00
[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:
parent
533c0af724
commit
4d0b0cd917
@ -75,6 +75,10 @@ public:
|
||||
bool closed() {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool isatty() {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -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 );
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user