This is an automated email from the ASF dual-hosted git repository. jking pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push: new 6b3f7d9 Fix spelling errors in TSSLSocket.py 6b3f7d9 is described below commit 6b3f7d92f9dc231cb7ae1606dd15d8faad38be1a Author: Tim Armstrong <tarmstr...@cloudera.com> AuthorDate: Thu Feb 14 14:59:22 2019 -0800 Fix spelling errors in TSSLSocket.py --- lib/py/src/transport/TSSLSocket.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/py/src/transport/TSSLSocket.py b/lib/py/src/transport/TSSLSocket.py index c87e81c..066d8da 100644 --- a/lib/py/src/transport/TSSLSocket.py +++ b/lib/py/src/transport/TSSLSocket.py @@ -79,8 +79,8 @@ class TSSLBase(object): SSL_VERSION = _default_protocol """ Default SSL version. - For backword compatibility, it can be modified. - Use __init__ keywoard argument "ssl_version" instead. + For backwards compatibility, it can be modified. + Use __init__ keyword argument "ssl_version" instead. """ def _deprecated_arg(self, args, kwargs, pos, key): @@ -89,12 +89,12 @@ class TSSLBase(object): real_pos = pos + 3 warnings.warn( '%dth positional argument is deprecated.' - 'please use keyward argument insteand.' + 'please use keyword argument instead.' % real_pos, DeprecationWarning, stacklevel=3) if key in kwargs: raise TypeError( - 'Duplicate argument: %dth argument and %s keyward argument.' + 'Duplicate argument: %dth argument and %s keyword argument.' % (real_pos, key)) kwargs[key] = args[pos] @@ -118,7 +118,7 @@ class TSSLBase(object): if TSSLBase.SSL_VERSION != self._default_protocol: warnings.warn( 'SSL_VERSION is deprecated.' - 'please use ssl_version keyward argument instead.', + 'please use ssl_version keyword argument instead.', DeprecationWarning, stacklevel=2) self._context = ssl_opts.pop('ssl_context', None) self._server_hostname = None