[kupfer: 4/11] Manual.rst: Edit broken sentence
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer: 4/11] Manual.rst: Edit broken sentence
- Date: Sun, 1 Nov 2009 19:49:28 +0000 (UTC)
commit 3a5b2eb35f6bd7bc629b7788cbdc4a9c8480401f
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Sun Nov 1 13:01:34 2009 +0100
Manual.rst: Edit broken sentence
Documentation/Manual.rst | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/Documentation/Manual.rst b/Documentation/Manual.rst
index e1f45d9..d32aa52 100644
--- a/Documentation/Manual.rst
+++ b/Documentation/Manual.rst
@@ -159,7 +159,7 @@ This defines, in addition to KupferObject:
``provides()``
Return a sequence of all precise Leaf types the Source may contain
-``get_leaf_repr``
+``get_leaf_repr()``
Return a Leaf that represents the Source, if applicable; for example
the DirectorySource is represented by a FileLeaf for the directory.
``__hash__`` and ``__eq__``
@@ -175,7 +175,7 @@ simplified version of Source.
``get_item(text)``
Return items for the given query.
-``provides``
+``provides()``
Return a sequence of the Leaf types it may contain
Strings
@@ -261,8 +261,9 @@ when writing new code, you should however use the following style::
Source.__init__(self, _("Recent items"))
Why? Because the second version is easier to copy! If you copy the whole
-class and rename it, which you often do to create new plugins, you have
-don't have to-- you are probably using the same superclass.
+class and rename it, which you often do to create new plugins, the
+second version does not need to be updated -- you are probably using the
+same superclass.
Localization
============
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]