with open('bloggers.yml','w') as b:
yaml.safe_dump(bloggers, b)
with open('bloggers.yml','w') as b:
yaml.safe_dump(bloggers, b)
- subprocess.check_call(["git", "commit", "ledger", "bloggers.yml",
- "-m", "Punts for %s" % (today,)])
+ if not dry_run:
+ subprocess.check_call(["git", "commit", "ledger", "bloggers.yml",
+ "-m", "Punts for %s" % (today,)])
# if it's a dry run, lets set the ledger back to the beginning state
if dry_run:
subprocess.check_call(["git", "checkout", "ledger"])
# if it's a dry run, lets set the ledger back to the beginning state
if dry_run:
subprocess.check_call(["git", "checkout", "ledger"])