This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import json | |
import logging | |
logger = logging.getLogger(__name__) | |
# See the very bottom of this gist for an example on how to use as well as what the script would output | |
def clean(obj): | |
'''Parses out all _Block objects into dicts and removes Nonetypes in order to convert to JSON''' |