Skip to content

Commit

Permalink
Python 2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
honzakral committed Apr 27, 2015
1 parent 44ef6a5 commit 703015e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elasticsearch_dsl/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def from_es(cls, index, doc_type, using='default'):
def _collect_analysis(self):
analysis = {}
for f in self.properties._collect_fields():
for analyzer_name in {'analyzer', 'index_analyzer', 'search_analyzer'}:
for analyzer_name in ('analyzer', 'index_analyzer', 'search_analyzer'):
if not hasattr(f, analyzer_name):
continue
analyzer = getattr(f, analyzer_name)
Expand Down

0 comments on commit 703015e

Please sign in to comment.