svn: r21101
This commit is contained in:
Doug Blank 2013-01-13 17:07:44 +00:00
parent f85a78a50d
commit 7a5e277b38

View File

@ -20,10 +20,14 @@
# $Id$
from gramps.gen.constfunc import UNITYPE
class Handle:
def __init__(self, classname, handle):
""" Class to hold type and handle of referenced item """
self.classname = classname
if not isinstance(handle, UNITYPE):
handle = handle.decode('utf-8')
self.handle = handle
def __repr__(self):