def _record(self, records, filename): ensure_directories_exist(filename, with_filename=True) with open(filename, 'w') as fh: json.dump(records, fh, sort_keys=True, check_circular=False, indent=2)
def hasStatusChanged(self): # (Re-)create that folder. ensure_directories_exist(self.summary_checkout_dir) differs = True # Diff current against repo summary, if the latter exists. if os.path.isfile(self.summary_checkout_file): differs = len(self.diff(self.summary_current, self.summary_checkout_file)) != 0 return differs
def hasStatusChanged(self): # (Re-)create that folder. ensure_directories_exist(self.summary_checkout_dir) differs = True # Diff current against repo summary, if the latter exists. if os.path.isfile(self.summary_checkout_file): differs = len( self.diff(self.summary_current, self.summary_checkout_file)) != 0 return differs