Skip to content

Instantly share code, notes, and snippets.

@JKring
Created May 10, 2013 21:07
Show Gist options
  • Save JKring/5557423 to your computer and use it in GitHub Desktop.
Save JKring/5557423 to your computer and use it in GitHub Desktop.
import issue
Traceback (most recent call last):
File "starter.py", line 31, in <module>
seed()
File "starter.py", line 25, in seed
flat_docs = load_flat_docs('jobs.txt')
File "starter.py", line 14, in load_flat_docs
return [ruby_to_python(doc) for doc in open(filename).readlines()]
File "starter.py", line 10, in ruby_to_python
python_dict = eval(sub)
File "<string>", line 1
{"identifier":"4f2b35dec79c6f6f06000111","writer":"4f1ca661d684124b530001f8","business":"4f08c9aac79c6f5ba2000793","format":"Scripted.com","guidelines":["Instructional/Educational","Witty/Sharp","Sincere","1st Personal Plural"],"industries":["Business","Internet/Software","Publishing/Journalism"],"satisfactions":[],"state":"Accepted First Time","tip":0.0,"favorited":False,"unfavorited":False}
^
SyntaxError: invalid syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment