X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..52f52ebc4e0be6a9899d328b08db9eb14629d219:/wxPython/src/_streams.i?ds=inline diff --git a/wxPython/src/_streams.i b/wxPython/src/_streams.i index d92f5eb225..df85f9914e 100644 --- a/wxPython/src/_streams.i +++ b/wxPython/src/_streams.i @@ -27,15 +27,15 @@ %typemap(in) wxInputStream* (wxPyInputStream* temp, bool created) { if (wxPyConvertSwigPtr($input, (void **)&temp, wxT("wxPyInputStream"))) { $1 = temp->m_wxis; - created = false; + created = False; } else { PyErr_Clear(); // clear the failure of the wxPyConvert above - $1 = wxPyCBInputStream_create($input, false); + $1 = wxPyCBInputStream_create($input, False); if ($1 == NULL) { PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); SWIG_fail; } - created = true; + created = True; } } %typemap(freearg) wxInputStream* { @@ -54,7 +54,7 @@ if ($1) { _ptr = new wxPyInputStream($1); } - $result = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true); + $result = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); } @@ -68,7 +68,6 @@ enum wxSeekMode }; - %name(InputStream) class wxPyInputStream { public: %extend {