Skip to content

Instantly share code, notes, and snippets.

@ejcer
Created October 7, 2016 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ejcer/c241cb5cfcd33ab902bc34e2db2d27b0 to your computer and use it in GitHub Desktop.
Save ejcer/c241cb5cfcd33ab902bc34e2db2d27b0 to your computer and use it in GitHub Desktop.
from redbaron import RedBaron
import json
with open("the_unidiomatic_python_file.py", "r") as source_code:
red = RedBaron(source_code.read())
red
del red[1]
red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment