Skip to content

Commit d04bd38

Browse files
committed
Python 2 fix
1 parent 5271227 commit d04bd38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

elasticsearch_dsl/mapping.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
))
1717

1818
class Properties(DslBase):
19-
# FIXME: to_dict pop
2019
name = 'properties'
2120
_param_defs = {'properties': {'type': 'field', 'hash': True}}
2221
def __init__(self):
@@ -32,7 +31,7 @@ def __contains__(self, name):
3231
return name in self.properties
3332

3433
def to_dict(self):
35-
return super().to_dict()['properties']
34+
return super(Properties, self).to_dict()['properties']
3635

3736
def field(self, name, *args, **kwargs):
3837
self.properties[name] = construct_field(*args, **kwargs)

0 commit comments

Comments
 (0)