cfpb / sheer

A tool for loading arbitrary content into Elasticsearch and serving that content on the web.
Creative Commons Zero v1.0 Universal
29 stars 23 forks source link

Fixes to maintain support for python 2.6 #67

Closed dpford closed 10 years ago

dpford commented 10 years ago

Two very small changes here that were causing problems in 2.6:

  1. Substitution using "{} {} {}".format(a, b, c) requires explicit indices in 2.6 e.g. "{0} {1} {2}"
  2. The previous check for python 2.6 in indexer.py wasn't picking up 2.6.6, and therefore was trying to run python 2.7+ code
rosskarchner commented 10 years ago

Just ran into this bug -- thanks!