From f2b2001078c607723f0d6103f2e2ed26f9f45763 Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Fri, 3 Oct 2014 10:34:35 +0000 Subject: QPID-6116: [Python Client 0-8..0-9] Fix spelling error in new method name git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1629178 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/qpid/saslmech/anonymous.py | 2 +- qpid/python/qpid/saslmech/external.py | 2 +- qpid/python/qpid/saslmech/finder.py | 2 +- qpid/python/qpid/saslmech/sasl.py | 2 +- qpid/python/qpid/tests/saslmech/my_sasl2.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'qpid/python') diff --git a/qpid/python/qpid/saslmech/anonymous.py b/qpid/python/qpid/saslmech/anonymous.py index 8f3fa1434e..1002a3aa0a 100644 --- a/qpid/python/qpid/saslmech/anonymous.py +++ b/qpid/python/qpid/saslmech/anonymous.py @@ -21,7 +21,7 @@ from sasl import Sasl class ANONYMOUS(Sasl): - def prerequistesOk(self): + def prerequisitesOk(self): return True diff --git a/qpid/python/qpid/saslmech/external.py b/qpid/python/qpid/saslmech/external.py index 00c6aba491..51c8d97530 100644 --- a/qpid/python/qpid/saslmech/external.py +++ b/qpid/python/qpid/saslmech/external.py @@ -23,5 +23,5 @@ from sasl import Sasl class EXTERNAL(Sasl): """Sasl mechanism used when SSL with client-auth is in use""" - def prerequistesOk(self): + def prerequisitesOk(self): return True diff --git a/qpid/python/qpid/saslmech/finder.py b/qpid/python/qpid/saslmech/finder.py index eab0250942..1dda9ec48f 100644 --- a/qpid/python/qpid/saslmech/finder.py +++ b/qpid/python/qpid/saslmech/finder.py @@ -37,7 +37,7 @@ def get_sasl_mechanism(mechanismNames, username, password, namespace="qpid.saslm clazz = _get_class(canonicalName) log.debug("Found SASL implementation") instance = clazz(username, password, mechanismName, sasl_options) - if (instance.prerequistesOk()): + if (instance.prerequisitesOk()): instances.append(instance) else: log.debug("SASL mechanism %s unavailable as the prerequistes for this mechanism have not been met", mechanismName) diff --git a/qpid/python/qpid/saslmech/sasl.py b/qpid/python/qpid/saslmech/sasl.py index 63ba36f8ad..7b1ae058db 100644 --- a/qpid/python/qpid/saslmech/sasl.py +++ b/qpid/python/qpid/saslmech/sasl.py @@ -27,7 +27,7 @@ class Sasl: self.name = name self.sasl_options = sasl_options - def prerequistesOk(self): + def prerequisitesOk(self): return self.user is not None and self.password is not None def initialResponse(self): diff --git a/qpid/python/qpid/tests/saslmech/my_sasl2.py b/qpid/python/qpid/tests/saslmech/my_sasl2.py index c03dcbf2ca..e0b3dfa56f 100644 --- a/qpid/python/qpid/tests/saslmech/my_sasl2.py +++ b/qpid/python/qpid/tests/saslmech/my_sasl2.py @@ -24,5 +24,5 @@ class MY_SASL2(Sasl): def priority(self): return 0 - def prerequistesOk(self): + def prerequisitesOk(self): return True -- cgit v1.2.1