From c4677e800e0c03806bcfcf5f28351d2eff7e94f2 Mon Sep 17 00:00:00 2001 From: meixinsheng Date: Wed, 28 Jul 2021 19:46:04 +0800 Subject: [PATCH] change super() to super(Connection, self), super() does not work in python2 --- pyhive/trino.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhive/trino.py b/pyhive/trino.py index e8a1aabd..6fa3b52a 100644 --- a/pyhive/trino.py +++ b/pyhive/trino.py @@ -48,7 +48,7 @@ def connect(*args, **kwargs): class Connection(PrestoConnection): def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + super(Connection, self).__init__(*args, **kwargs) def cursor(self): """Return a new :py:class:`Cursor` object using the connection."""