branch : pmacs2
This commit is contained in:
moculus 2008-05-11 23:59:35 +00:00
parent e2e6e28c07
commit af1ccc71af
2 changed files with 4 additions and 1 deletions

3
exceptions.py Normal file
View File

@ -0,0 +1,3 @@
class ReadOnlyError:
'This error is raised when attempting to edit a read-only buffer'
pass

View File

@ -273,7 +273,7 @@ class PythonInsertTripleSquotes(method.Method):
'''Insert a triple-quoted string using single-quotes''' '''Insert a triple-quoted string using single-quotes'''
_q = "'''" _q = "'''"
def _execute(self, w, **vargs): def _execute(self, w, **vargs):
w.insert_string_at_cursor('%s%s' % (_q, _q)) w.insert_string_at_cursor('%s%s' % (self._q, self._q))
for i in range(0, 3): for i in range(0, 3):
w.backward() w.backward()
class PythonInsertTripleDquotes(PythonInsertTripleSquotes): class PythonInsertTripleDquotes(PythonInsertTripleSquotes):