

def save(self):
    assert (not fp.parent), 'save() should only be called on root objects'
    if self.jsonfilename:
        with open(self.jsonfilename, 'w') as fp:
            json.dump(self.source, fp, indent=4, separators=(',', ': '), sort_keys=True)

dataset/ETHPy150Open staffanm/layeredconfig/layeredconfig/jsonfile.py JSONFile.save/VarMisuse@13/14 `self`->`fp`