def _collect_dirty_tabs(self, exept=None):
        """
        Collects the list of dirty tabs
        """
        widgets = []
        filenames = []
        for i in range(self.count()):
            widget = self.widget(i)
            try:
                if widget.dirty and widget != exept:
                    widgets.append(widget)
                    filenames.append(widget.file.path)
            except AttributeError:
                pass
        return widgets, filenames
def _collect_dirty_tabs ( self , exept = None ) : widgets = [ ] filenames = [ ] for i in range ( self . count ( ) ) : widget = self . widget ( i ) try : if widget . dirty and widget != exept : widgets . append ( widget ) filenames . append ( widget . file . path ) except AttributeError : pass return widgets , filenames
Collects the list of dirty tabs