7482: Fix python3 problems with new place structure

Based on patches by Marc Hulsman.
This commit is contained in:
Nick Hall
2014-02-25 21:55:06 +00:00
parent 8dd6d92184
commit c364bcd7ad
5 changed files with 14 additions and 10 deletions

View File

@@ -1096,7 +1096,8 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
"""
Find all child places having the given place as the primary parent.
"""
handle = str(handle)
if isinstance(handle, UNITYPE):
handle = handle.encode('utf-8')
parent_cur = self.get_place_parent_cursor()
try: