From 2b85b52d8cc4e004ae237401b6239d5e169bb498 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Fri, 10 Apr 2020 06:54:31 +0000 Subject: [PATCH] Import ABC from collections.abc instead of collections for Python 3 compatibility. --- pandasticsearch/queries.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pandasticsearch/queries.py b/pandasticsearch/queries.py index b83bd25..de8fce7 100644 --- a/pandasticsearch/queries.py +++ b/pandasticsearch/queries.py @@ -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