Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

        def is_a_non_log_line(line):
    if len(line.raw) == 0:
        return True

    return line.raw[0] == '\t' \
                or len(line.raw) != len(line.raw.lstrip()) \
                or not line.raw \
                or "(Music" in line.raw
        


src/s/p/Spacelog-HEAD/mcshred/src/MCShredTest.py   Spacelog(Download)
        logLine3 = make_log_line(u"    ( other weird text Thing )")
        logLine4 = make_log_line(u"")
        assert MCShred.is_a_non_log_line(logLine0) == False
        assert MCShred.is_a_non_log_line(logLine1) == False
        assert MCShred.is_a_non_log_line(logLine2) == True
        assert MCShred.is_a_non_log_line(logLine3) == True
        assert MCShred.is_a_non_log_line(logLine4) == True