X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd9f7fea29e3f8bb61861f52984b7943512346ac..a3f4cbd6c8bf939765639251a82308f40f7f5514:/wxPython/src/_streams.i diff --git a/wxPython/src/_streams.i b/wxPython/src/_streams.i index 59ff7d7d4a..ed762b075e 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 {