Merge pull request #1677 from Metallicow/remove-exception-in-py-shell-wrap-method

Remove exception in py shell wrap() method
This commit is contained in:
Robin Dunn
2020-06-16 17:32:30 -07:00
committed by GitHub

View File

@@ -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.