Skip to content

Commit

Permalink
Skips "methods" that are actually types (enums)
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Feb 25, 2015
1 parent 7b853c4 commit a8a61f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vistrails/packages/vtk/vtk_parser.py
Expand Up @@ -363,7 +363,10 @@ def _organize_methods(self, klass, methods):
meths = self._find_state_methods(klass, meths)
meths = self._find_get_set_methods(klass, meths)
meths = self._find_get_methods(klass, meths)
self.other_meths = [x for x in meths if '__' not in x]
self.other_meths = [x for x in meths \
if callable(getattr(klass, x)) and
'__' not in x and
not isinstance(getattr(klass, x), type)]

def _remove_method(self, meths, method):
try:
Expand Down

0 comments on commit a8a61f9

Please sign in to comment.