4823: Docstring and comment fixes.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 3 Mar 2015 14:34:05 +0000 (09:34 -0500)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 3 Mar 2015 14:34:05 +0000 (09:34 -0500)
sdk/python/arvados/_ranges.py
sdk/python/arvados/errors.py

index ba92f93820b2744b248674acad3548acd596e18d..947b35fe0f5ac5bad581a7dbaf4ab1e28cb33809 100644 (file)
@@ -32,7 +32,7 @@ def first_block(data_locators, range_start, range_size):
     block_end = block_start + block_size
 
     # perform a binary search for the first block
-    # assumes that all of the blocks are contigious, so range_start is guaranteed
+    # assumes that all of the blocks are contiguous, so range_start is guaranteed
     # to either fall into the range of a block or be outside the block range entirely
     while not (range_start >= block_start and range_start < block_end):
         if lo == i:
@@ -125,7 +125,7 @@ def replace_range(data_locators, new_range_start, new_range_size, new_locator, n
     data_locators will be updated in place
 
     :data_locators:
-      list of Range objects, assumes that segments are in order and contigous
+      list of Range objects, assumes that segments are in order and contiguous
 
     :new_range_start:
       start of range to replace in data_locators
index ab4609f697cbec512f7b194efdc51bbcc9be4374..3629520a4d5f7216a86a5b085585e4f0756b3581 100644 (file)
@@ -30,6 +30,9 @@ class KeepRequestError(Exception):
           These will be packed into an OrderedDict, available through the
           request_errors() method.
 
+        :label:
+          A label indicating the type of value in the 'key' position of request_errors.
+
         """
         self.label = label
         self._request_errors = OrderedDict(request_errors)