# Path: srsly/ruamel_yaml/compat.py
# PY3 = sys.version_info[0] == 3


import sys
import os
import types
import traceback
import pprint
import argparse
from srsly.ruamel_yaml.compat import PY3
    return (name, filenames, kind, info)


def display(results, verbose):
    if results and not verbose:
        sys.stdout.write("\n")
    total = len(results)
    failures = 0
    errors = 0
    for name, filenames, kind, info in results:
        if kind == "SUCCESS":
            continue
        if kind == "FAILURE":
            failures += 1
        if kind == "ERROR":
            errors += 1
        sys.stdout.write("=" * 75 + "\n")
        sys.stdout.write("%s(%s): %s\n" % (name, ", ".join(filenames), kind))
        if kind == "ERROR":
            traceback.print_exception(file=sys.stdout, *info)
        else:
            sys.stdout.write("Traceback (most recent call last):\n")
            traceback.print_tb(info[2], file=sys.stdout)
            sys.stdout.write("%s: see below\n" % info[0].__name__)
            sys.stdout.write("~" * 75 + "\n")
            for arg in info[1].args:
                pprint.pprint(arg, stream=sys.stdout)
        for filename in filenames:
            sys.stdout.write("-" * 75 + "\n")
            sys.stdout.write("%s:\n" % filename)

# Path: srsly/ruamel_yaml/compat.py
# PY3 = sys.version_info[0] == 3


# Path: srsly/tests/ruamel_yaml/test_appliance.py
import sys
import os
import types
import traceback
import pprint
import argparse
from srsly.ruamel_yaml.compat import PY3

    return (name, filenames, kind, info)


def display(results, verbose):
    if results and not verbose:
        sys.stdout.write("\n")
    total = len(results)
    failures = 0
    errors = 0
    for name, filenames, kind, info in results:
        if kind == "SUCCESS":
            continue
        if kind == "FAILURE":
            failures += 1
        if kind == "ERROR":
            errors += 1
        sys.stdout.write("=" * 75 + "\n")
        sys.stdout.write("%s(%s): %s\n" % (name, ", ".join(filenames), kind))
        if kind == "ERROR":
            traceback.print_exception(file=sys.stdout, *info)
        else:
            sys.stdout.write("Traceback (most recent call last):\n")
            traceback.print_tb(info[2], file=sys.stdout)
            sys.stdout.write("%s: see below\n" % info[0].__name__)
            sys.stdout.write("~" * 75 + "\n")
            for arg in info[1].args:
                pprint.pprint(arg, stream=sys.stdout)
        for filename in filenames:
            sys.stdout.write("-" * 75 + "\n")
            sys.stdout.write("%s:\n" % filename)

            if PY3: