Skip to content

Instantly share code, notes, and snippets.

@major
Created August 9, 2012 14:35
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 major/3304704 to your computer and use it in GitHub Desktop.
Save major/3304704 to your computer and use it in GitHub Desktop.
# Inject files, if necessary
injected_files = instance.get("injected_files")
if injected_files:
# Check if this is a JSON-encoded string and convert if needed.
if isinstance(injected_files, basestring):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment