55 self.setAutoIndentStyle(QsciScintilla.AiMaintain) |
55 self.setAutoIndentStyle(QsciScintilla.AiMaintain) |
56 try: |
56 try: |
57 self.setV2UnicodeAllowed(Preferences.getEditor("PythonAllowV2Unicode")) |
57 self.setV2UnicodeAllowed(Preferences.getEditor("PythonAllowV2Unicode")) |
58 self.setV3BinaryOctalAllowed(Preferences.getEditor("PythonAllowV3Binary")) |
58 self.setV3BinaryOctalAllowed(Preferences.getEditor("PythonAllowV3Binary")) |
59 self.setV3BytesAllowed(Preferences.getEditor("PythonAllowV3Bytes")) |
59 self.setV3BytesAllowed(Preferences.getEditor("PythonAllowV3Bytes")) |
|
60 except AttributeError: |
|
61 pass |
|
62 try: |
|
63 self.setFoldQuotes(Preferences.getEditor("PythonFoldQuotes")) |
|
64 self.setStringsOverNewlineAllowed( |
|
65 Preferences.getEditor("PythonStringsOverNewLineAllowed")) |
60 except AttributeError: |
66 except AttributeError: |
61 pass |
67 pass |
62 |
68 |
63 def getIndentationDifference(self, line, editor): |
69 def getIndentationDifference(self, line, editor): |
64 """ |
70 """ |