Did I find the right examples for you? yes no

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)

src/s/u/SublimeSBT-HEAD/highlighter.py   SublimeSBT(Download)
import sublime
 
try:
    from .util import group_by, maybe
except(ValueError):
    from util import group_by, maybe
    def highlight(self, view, errors, replace=False):
        bookmarked_line = self._bookmark_error(view)
        grouped = group_by(errors, lambda e: e.error_type)
        for error_type in type(self).error_types:
            lines = [e.line for e in grouped.get(error_type, list())]