34 |
36 |
35 def initProperties(self): |
37 def initProperties(self): |
36 """ |
38 """ |
37 Public slot to initialize the properties. |
39 Public slot to initialize the properties. |
38 """ |
40 """ |
39 try: |
41 with contextlib.suppress(AttributeError): |
40 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
42 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
41 self.setFoldComments(Preferences.getEditor("RubyFoldComment")) |
43 self.setFoldComments(Preferences.getEditor("RubyFoldComment")) |
42 except AttributeError: |
|
43 pass |
|
44 |
44 |
45 def autoCompletionWordSeparators(self): |
45 def autoCompletionWordSeparators(self): |
46 """ |
46 """ |
47 Public method to return the list of separators for autocompletion. |
47 Public method to return the list of separators for autocompletion. |
48 |
48 |