From 6e681835a6a403e86f3e4f4b6f160fd62e1c53c3 Mon Sep 17 00:00:00 2001 From: Metallicow Date: Tue, 9 Jun 2020 22:14:18 -0500 Subject: [PATCH] Remove exception in py shell wrap() method This exists in Scintilla when wxPython 4.0 Phoenix came out, so remove it as cruft. --- wx/py/shell.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wx/py/shell.py b/wx/py/shell.py index e94caedf..fb319393 100755 --- a/wx/py/shell.py +++ b/wx/py/shell.py @@ -1436,10 +1436,7 @@ class Shell(editwindow.EditWindow): def wrap(self, wrap=True): """Sets whether text is word wrapped.""" - try: - self.SetWrapMode(wrap) - except AttributeError: - return 'Wrapping is not available in this version.' + self.SetWrapMode(wrap) def zoom(self, points=0): """Set the zoom level.