~marco-giusti/virtualbrick/deb-package

« back to all changes in this revision

Viewing changes to virtualbricks/configfile.py

MergeĀ fromĀ upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
        if isinstance(str_or_obj, (basestring, filepath.FilePath)):
259
259
            if isinstance(str_or_obj, basestring):
260
260
                fp = filepath.FilePath(str_or_obj)
 
261
            else:
 
262
                fp = str_or_obj
261
263
            restore_backup(fp, fp.sibling(fp.basename() + "~"))
262
264
            logger.info(open_project, path=fp.path)
263
265
            with fp.open() as fd: