tests/config.py
author Radek Brich <radek.brich@devl.cz>
Thu, 31 Jan 2013 13:24:57 +0100
changeset 63 8c7f0a51ba50
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
PgDiff, schemadiff.py: Add function filter. Add --body parameter to diff function source.

class Config(dict):
    def __init__(self, fname):
        with open(fname) as f:
            data = f.read()
        exec(data, dict(), self)