Skip to content

Commit dbca7ad

Browse files
committed
Merge pull request #340 from rgs1/fix-nameerror-basestring
Fix NameError with basestring (in py3k)
2 parents 7b89bf1 + 591df77 commit dbca7ad

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

CHANGES.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
Changelog
22
=========
33

4+
2.2.1 (2015-XX-XX)
5+
-----
6+
7+
Features
8+
********
9+
10+
Bug Handling
11+
************
12+
- handle NameError with basestring on py3k.
13+
14+
Documentation
15+
*************
16+
417
2.2 (2015-06-15)
518
----------------
619

kazoo/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,11 +1404,11 @@ def reconfig_async(self, joining, leaving, new_members, from_config):
14041404
:rtype: :class:`~kazoo.interfaces.IAsyncResult`
14051405
14061406
"""
1407-
if joining and not isinstance(joining, basestring):
1407+
if joining and not isinstance(joining, string_types):
14081408
raise TypeError("Invalid type for 'joining' (string expected)")
1409-
if leaving and not isinstance(leaving, basestring):
1409+
if leaving and not isinstance(leaving, string_types):
14101410
raise TypeError("Invalid type for 'leaving' (string expected)")
1411-
if new_members and not isinstance(new_members, basestring):
1411+
if new_members and not isinstance(new_members, string_types):
14121412
raise TypeError("Invalid type for 'new_members' (string "
14131413
"expected)")
14141414
if not isinstance(from_config, int):

0 commit comments

Comments
 (0)