Skip to content

Commit

Permalink
Merge pull request #39 from tirkarthi/fix-abc
Browse files Browse the repository at this point in the history
Import ABC from collections.abc instead of collections for Python 3 compatibility.
  • Loading branch information
onesuper authored Apr 22, 2020
2 parents 3ea1045 + 2b85b52 commit 7dd52f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pandasticsearch/queries.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# -*- coding: UTF-8 -*-

import collections
try:
from collections.abc import MutableSequence
except ImportError:
from collections import MutableSequence
import json
import six

from pandasticsearch.errors import NoSuchDependencyException


class Query(collections.MutableSequence):
class Query(MutableSequence):
def __init__(self):
super(Query, self).__init__()
self._values = None
Expand Down

0 comments on commit 7dd52f4

Please sign in to comment.