in uberpoet/statemanagement.py [0:0]
def save_buckconfig_local(self):
if os.path.exists(self.backup_path):
os.remove(self.backup_path)
if os.path.exists(self.local_path):
logging.info('Backing up .buckconfig.local to .buckconfig.local.bak')
shutil.copy2(self.local_path, self.backup_path)
self.have_backed_up = True
else:
logging.info('No .buckconfig.local to back up, skipping')