diff --git a/HISTORY.md b/HISTORY.md index 76b26adc..2b8d93bc 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -113,7 +113,7 @@ dev **Dependencies** - Pinning for `chardet` and `idna` now uses major version instead of minor. - This hopefully reduces the need for releases everytime a dependency is updated. + This hopefully reduces the need for releases every time a dependency is updated. 2.22.0 (2019-05-15) ------------------- @@ -468,7 +468,7 @@ Or, even better: - Fixed regression from 2.12.2 where non-string types were rejected in the basic auth parameters. While support for this behaviour has been - readded, the behaviour is deprecated and will be removed in the + re-added, the behaviour is deprecated and will be removed in the future. 2.12.3 (2016-12-01) @@ -1707,7 +1707,7 @@ This is not a backwards compatible change. New Authentication Manager System : - Simpler Basic HTTP System - - Supports all build-in urllib2 Auths + - Supports all built-in urllib2 Auths - Allows for custom Auth Handlers 0.2.4 (2011-02-19) diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index 3bea5007..24e07528 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -446,7 +446,7 @@ argument. def print_url(r, *args, **kwargs): print(r.url) -Your callback function must handle its own exceptions. Any unhandled exception wont be pass silently and thus should be handled by the code calling Requests. +Your callback function must handle its own exceptions. Any unhandled exception won't be passed silently and thus should be handled by the code calling Requests. If the callback function returns a value, it is assumed that it is to replace the data that was passed in. If the function doesn't return diff --git a/requests/utils.py b/requests/utils.py index 41bfb82f..97f895eb 100644 --- a/requests/utils.py +++ b/requests/utils.py @@ -154,7 +154,7 @@ def super_len(o): current_position = total_length else: if hasattr(o, 'seek') and total_length is None: - # StringIO and BytesIO have seek but no useable fileno + # StringIO and BytesIO have seek but no usable fileno try: # seek to end of file o.seek(0, 2)