Use GrampsCursor as a context manager using "with" statement

svn: r12672
This commit is contained in:
Gerald Britton
2009-06-16 15:49:17 +00:00
parent 187539cb72
commit 70a0c50fca
11 changed files with 208 additions and 289 deletions

View File

@@ -399,7 +399,7 @@ class Callback(object):
try:
if isinstance(fn, types.FunctionType) or \
isinstance(fn, types.MethodType): # call func
fn(*args)
fn(*args)
else:
self._warn("Badly formed entry in callback map.\n")
except: