Rev 4224: (Matt Nordhoff) Fix a few typos in docstrings. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Wed Apr 1 02:34:54 BST 2009


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 4224
revision-id: pqm at pqm.ubuntu.com-20090401013450-7a9hdobj3p3f033c
parent: pqm at pqm.ubuntu.com-20090331211100-5uy3c6au9pfy0l6i
parent: mnordhoff at mattnordhoff.com-20090325220111-0kw4q259g9hy6036
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Wed 2009-04-01 02:34:50 +0100
message:
  (Matt Nordhoff) Fix a few typos in docstrings.
modified:
  bzrlib/graph.py                graph_walker.py-20070525030359-y852guab65d4wtn0-1
  bzrlib/osutils.py              osutils.py-20050309040759-eeaff12fbf77ac86
    ------------------------------------------------------------
    revno: 4204.2.2
    revision-id: mnordhoff at mattnordhoff.com-20090325220111-0kw4q259g9hy6036
    parent: mnordhoff at mattnordhoff.com-20090325215420-0yl7f7axfgpzfq3v
    committer: Matt Nordhoff <mnordhoff at mattnordhoff.com>
    branch nick: typos_200903
    timestamp: Wed 2009-03-25 22:01:11 +0000
    message:
      Fix docstrings on graph.py's is_empty methods that said they returned true when they were *not* empty.
      
      I'm 99% sure this is correct, but I could be misunderstanding horribly.
    modified:
      bzrlib/graph.py                graph_walker.py-20070525030359-y852guab65d4wtn0-1
    ------------------------------------------------------------
    revno: 4204.2.1
    revision-id: mnordhoff at mattnordhoff.com-20090325215420-0yl7f7axfgpzfq3v
    parent: pqm at pqm.ubuntu.com-20090325192730-yt4por4rlu0x7gvi
    committer: Matt Nordhoff <mnordhoff at mattnordhoff.com>
    branch nick: typos_200903
    timestamp: Wed 2009-03-25 21:54:20 +0000
    message:
      Fix a broken sentence in osutils.safe_unicode's docstring
    modified:
      bzrlib/osutils.py              osutils.py-20050309040759-eeaff12fbf77ac86
=== modified file 'bzrlib/graph.py'
--- a/bzrlib/graph.py	2009-03-24 23:19:12 +0000
+++ b/bzrlib/graph.py	2009-03-25 22:01:11 +0000
@@ -1486,7 +1486,7 @@
         return self._keys
 
     def is_empty(self):
-        """Return true if the search lists 1 or more revisions."""
+        """Return false if the search lists 1 or more revisions."""
         return self._recipe[3] == 0
 
     def refine(self, seen, referenced):
@@ -1560,7 +1560,7 @@
         return keys
 
     def is_empty(self):
-        """Return true if the search lists 1 or more revisions."""
+        """Return false if the search lists 1 or more revisions."""
         if revision.NULL_REVISION in self.heads:
             return len(self.heads) == 1
         else:

=== modified file 'bzrlib/osutils.py'
--- a/bzrlib/osutils.py	2009-03-24 05:12:24 +0000
+++ b/bzrlib/osutils.py	2009-03-25 21:54:20 +0000
@@ -1051,9 +1051,8 @@
     """Coerce unicode_or_utf8_string into unicode.
 
     If it is unicode, it is returned.
-    Otherwise it is decoded from utf-8. If a decoding error
-    occurs, it is wrapped as a If the decoding fails, the exception is wrapped
-    as a BzrBadParameter exception.
+    Otherwise it is decoded from utf-8. If decoding fails, the exception is
+    wrapped in a BzrBadParameterNotUnicode exception.
     """
     if isinstance(unicode_or_utf8_string, unicode):
         return unicode_or_utf8_string




More information about the bazaar-commits mailing list