How to use the function in duecredit

To help you get started, we’ve selected a few duecredit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github duecredit / duecredit / duecredit / cmdline / View on Github external
def run(args):
    from import PickleOutput
    if not os.path.exists(args.filename):
        lgr.debug("File {0} doesn't exist.  No summary available".format(
        return 1

    due = PickleOutput.load(args.filename)

    if args.format == "text":
        out = TextOutput(sys.stdout, due,
    elif args.format == "bibtex":
        out = BibTeXOutput(sys.stdout, due)
        raise ValueError("unknown to treat %s" % args.format)
github duecredit / duecredit / duecredit / View on Github external
def load_due(filename):
    return PickleOutput.load(filename)