Issue #0002175: Change type() expressions to isinstance() expressions.
Patch from Gerald Britton <gerald.britton@gmail.com> svn: r10762
This commit is contained in:
@@ -805,10 +805,10 @@ class GraphvizReportDialog(ReportDialog):
|
||||
name, translated_name)
|
||||
|
||||
def init_options(self, option_class):
|
||||
if type(option_class) == ClassType:
|
||||
if isinstance(option_class, ClassType):
|
||||
self.options = option_class(self.raw_name,
|
||||
self.dbstate.get_database())
|
||||
elif type(option_class) == InstanceType:
|
||||
elif isinstance(option_class, InstanceType):
|
||||
self.options = option_class
|
||||
|
||||
################################
|
||||
|
||||
Reference in New Issue
Block a user