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