From af1ccc71afe8c6f5155e9dd4a135c605b3d66432 Mon Sep 17 00:00:00 2001 From: moculus Date: Sun, 11 May 2008 23:59:35 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- exceptions.py | 3 +++ mode/python.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 exceptions.py diff --git a/exceptions.py b/exceptions.py new file mode 100644 index 0000000..f54c6e9 --- /dev/null +++ b/exceptions.py @@ -0,0 +1,3 @@ +class ReadOnlyError: + 'This error is raised when attempting to edit a read-only buffer' + pass diff --git a/mode/python.py b/mode/python.py index 062a23b..74e11f6 100644 --- a/mode/python.py +++ b/mode/python.py @@ -273,7 +273,7 @@ class PythonInsertTripleSquotes(method.Method): '''Insert a triple-quoted string using single-quotes''' _q = "'''" 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): w.backward() class PythonInsertTripleDquotes(PythonInsertTripleSquotes):