X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3cee65ed41394fdcb13cd485fbe0acafb8a490b..40e5ebbf98728d627e4d3c9e3a57f28f5bb8fcb9:/wxPython/wx/py/shell.py diff --git a/wxPython/wx/py/shell.py b/wxPython/wx/py/shell.py index fe60b38221..ec8d7f4dae 100644 --- a/wxPython/wx/py/shell.py +++ b/wxPython/wx/py/shell.py @@ -343,11 +343,12 @@ class Shell(editwindow.EditWindow): def showIntro(self, text=''): """Display introductory text in the shell.""" if text: - if not text.endswith(os.linesep): - text += os.linesep self.write(text) try: - self.write(self.interp.introText) + if self.interp.introText: + if text and not text.endswith(os.linesep): + self.write(os.linesep) + self.write(self.interp.introText) except AttributeError: pass