kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ij...@apache.org
Subject kafka git commit: KAFKA-5742; Fix incorrect method name follow-up
Date Fri, 08 Sep 2017 18:05:41 GMT
Repository: kafka
Updated Branches:
  refs/heads/0.11.0 5f0c060e0 -> 4a4b883d1


KAFKA-5742; Fix incorrect method name follow-up

Author: Xavier Léauté <xl+github@xvrl.net>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #3818 from xvrl/fix-startswith

(cherry picked from commit 6e4045586212812165693840b68d7577a05b890a)
Signed-off-by: Ismael Juma <ismael@juma.me.uk>


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/4a4b883d
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/4a4b883d
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/4a4b883d

Branch: refs/heads/0.11.0
Commit: 4a4b883d10644d54feefdf3154e46d2b43d4cea4
Parents: 5f0c060
Author: Xavier Léauté <xl+github@xvrl.net>
Authored: Fri Sep 8 19:04:55 2017 +0100
Committer: Ismael Juma <ismael@juma.me.uk>
Committed: Fri Sep 8 19:05:37 2017 +0100

----------------------------------------------------------------------
 tests/kafkatest/services/zookeeper.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/4a4b883d/tests/kafkatest/services/zookeeper.py
----------------------------------------------------------------------
diff --git a/tests/kafkatest/services/zookeeper.py b/tests/kafkatest/services/zookeeper.py
index b1eed33..6b8c8b3 100644
--- a/tests/kafkatest/services/zookeeper.py
+++ b/tests/kafkatest/services/zookeeper.py
@@ -117,7 +117,7 @@ class ZookeeperService(KafkaPathResolverMixin, Service):
 
 
     def connect_setting(self, chroot=None):
-        if chroot and not chroot.starts_with("/"):
+        if chroot and not chroot.startswith("/"):
             raise Exception("ZK chroot must start with '/', invalid chroot: %s" % chroot)
 
         chroot = '' if chroot is None else chroot
@@ -136,7 +136,7 @@ class ZookeeperService(KafkaPathResolverMixin, Service):
         """
         Queries zookeeper for data associated with 'path' and returns all fields in the schema
         """
-        if chroot and not chroot.starts_with("/"):
+        if chroot and not chroot.startswith("/"):
             raise Exception("ZK chroot must start with '/', invalid chroot: %s" % chroot)
 
         chroot_path = ('' if chroot is None else chroot) + path


Mime
View raw message