[yum-commits] README test/munittest.py test/test_byterange.py test/test_grabber.py urlgrabber/byterange.py urlgrabber/grabber.py urlgrabber/mirror.py

Ville Skyttä scop at osuosl.org
Sat Aug 10 19:44:19 UTC 2013


 README                  |    2 +-
 test/munittest.py       |    6 +++---
 test/test_byterange.py  |    2 +-
 test/test_grabber.py    |    2 +-
 urlgrabber/byterange.py |    4 ++--
 urlgrabber/grabber.py   |    6 +++---
 urlgrabber/mirror.py    |    2 +-
 7 files changed, 12 insertions(+), 12 deletions(-)

New commits:
commit 1d204a3c8a35b5d8d38dc341a397106635962626
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Aug 10 22:44:10 2013 +0300

    Spelling fixes.

diff --git a/README b/README
index 5fd378b..2718d3c 100644
--- a/README
+++ b/README
@@ -19,7 +19,7 @@ You can build rpms by running
    python setup.py bdist_rpm 
 
 The rpms (both source and "binary") will be specific to the current
-distrubution/version and may not be portable to others.  This is
+distribution/version and may not be portable to others.  This is
 because they will be built for the currently installed python.
 
 keepalive.py and byterange.py are generic urllib2 extension modules and
diff --git a/test/munittest.py b/test/munittest.py
index 96230b8..16a61ae 100644
--- a/test/munittest.py
+++ b/test/munittest.py
@@ -113,7 +113,7 @@ import types
 __all__ = ['TestResult', 'TestCase', 'TestSuite', 'TextTestRunner',
            'TestLoader', 'FunctionTestCase', 'main', 'defaultTestLoader']
 
-# Expose obsolete functions for backwards compatability
+# Expose obsolete functions for backwards compatibility
 __all__.extend(['getTestCaseNames', 'makeSuite', 'findTestCases'])
 
 
@@ -410,7 +410,7 @@ class TestCase:
            (default 7) and comparing to zero.
 
            Note that decimal places (from zero) is usually not the same
-           as significant digits (measured from the most signficant digit).
+           as significant digits (measured from the most significant digit).
         """
         if round(second-first, places) != 0:
             raise self.failureException, \
@@ -422,7 +422,7 @@ class TestCase:
            (default 7) and comparing to zero.
 
            Note that decimal places (from zero) is usually not the same
-           as significant digits (measured from the most signficant digit).
+           as significant digits (measured from the most significant digit).
         """
         if round(second-first, places) == 0:
             raise self.failureException, \
diff --git a/test/test_byterange.py b/test/test_byterange.py
index 96f1573..fe7e105 100644
--- a/test/test_byterange.py
+++ b/test/test_byterange.py
@@ -56,7 +56,7 @@ class RangeableFileObjectTestCase(TestCase):
         """RangeableFileObject.seek() poor mans version..
         
         We just delete the seek method from StringIO so we can
-        excercise RangeableFileObject when the file object supplied
+        exercise RangeableFileObject when the file object supplied
         doesn't support seek.
         """
         seek = StringIO.seek
diff --git a/test/test_grabber.py b/test/test_grabber.py
index eecdbcf..d3a7692 100644
--- a/test/test_grabber.py
+++ b/test/test_grabber.py
@@ -86,7 +86,7 @@ class FileObjectTests(TestCase):
     
 class HTTPTests(TestCase):
     def test_reference_file(self):
-        "download refernce file via HTTP"
+        "download reference file via HTTP"
         filename = tempfile.mktemp()
         grabber.urlgrab(ref_http, filename)
 
diff --git a/urlgrabber/byterange.py b/urlgrabber/byterange.py
index 8eeaeda..5efa160 100644
--- a/urlgrabber/byterange.py
+++ b/urlgrabber/byterange.py
@@ -40,7 +40,7 @@ class HTTPRangeHandler(urllib2.BaseHandler):
     
     This was extremely simple. The Range header is a HTTP feature to
     begin with so all this class does is tell urllib2 that the 
-    "206 Partial Content" reponse from the HTTP server is what we 
+    "206 Partial Content" response from the HTTP server is what we 
     expected.
     
     Example:
@@ -442,7 +442,7 @@ def range_tuple_normalize(range_tup):
     Return a tuple whose first element is guaranteed to be an int
     and whose second element will be '' (meaning: the last byte) or 
     an int. Finally, return None if the normalized tuple == (0,'')
-    as that is equivelant to retrieving the entire file.
+    as that is equivalent to retrieving the entire file.
     """
     if range_tup is None: return None
     # handle first byte
diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index b8faf6b..711215f 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -35,7 +35,7 @@ GENERAL ARGUMENTS (kwargs)
   close_connection = 0   [0|1]
 
     tells URLGrabber to close the connection after a file has been
-    transfered. This is ignored unless the download happens with the
+    transferred. This is ignored unless the download happens with the
     http keepalive handler (keepalive=1).  Otherwise, the connection
     is left open for further use. The module level default for this
     option is 0 (keepalive connections will not be closed).
@@ -112,7 +112,7 @@ GENERAL ARGUMENTS (kwargs)
     range to retrieve. Either or both of the values may set to
     None. If first_byte is None, byte offset 0 is assumed. If
     last_byte is None, the last byte available is assumed. Note that
-    the range specification is python-like in that (0,10) will yeild
+    the range specification is python-like in that (0,10) will yield
     the first 10 bytes of the file.
 
     If set to None, no range will be used.
@@ -576,7 +576,7 @@ def _init_default_logger(logspec=None):
       URLGRABBER_DEBUG=WARNING,-     # log warning and higher to stdout
       URLGRABBER_DEBUG=INFO          # log info and higher to stderr
       
-    This funtion is called during module initialization.  It is not
+    This function is called during module initialization.  It is not
     intended to be called from outside.  The only reason it is a
     function at all is to keep the module-level namespace tidy and to
     collect the code into a nice block.'''
diff --git a/urlgrabber/mirror.py b/urlgrabber/mirror.py
index 5d3aa34..988a309 100644
--- a/urlgrabber/mirror.py
+++ b/urlgrabber/mirror.py
@@ -191,7 +191,7 @@ class MirrorGroup:
         etc).  Otherwise, it is assumed to be the callable object
         itself.  The callback will be passed a grabber.CallbackObject
         instance along with args and kwargs (if present).  The following
-        attributes are defined withing the instance:
+        attributes are defined within the instance:
 
            obj.exception    = < exception that was raised >
            obj.mirror       = < the mirror that was tried >


More information about the Yum-commits mailing list