Esempio n. 1
0
def cmd_lines(args):
    data = sys.stdin.buffer.read()
    document = BandwidthFile(data)
    allowed_errors = []
    if args.forgive:
        for allowed_error in args.forgive.split(","):
            allowed_errors.append(DirectoryDocumentItemError(allowed_error))
    for item in document.lines(allowed_errors=allowed_errors):
        print(item)
Esempio n. 2
0
def test_example_sbws_104():
    for line in BandwidthFile(example_sbws_104).lines():
        pass
Esempio n. 3
0
def test_example_version_100():
    for line in BandwidthFile(example_version_100).lines():
        pass
Esempio n. 4
0
def test_example_not_enough_eligible():
    for line in BandwidthFile(example_sbws_104).lines():
        pass
Esempio n. 5
0
def test_example_sbws_010():
    for line in BandwidthFile(example_sbws_010).lines():
        pass
Esempio n. 6
0
def cmd_tokenize(args):
    data = sys.stdin.buffer.read()
    document = BandwidthFile(data)
    for token in document.tokenize():
        print(token)