You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/10/09 22:45:50 UTC

[airflow] branch master updated: Replaced basestring with str in the Exasol hook (#11360)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new 7b0a2f5  Replaced basestring with str in the Exasol hook (#11360)
7b0a2f5 is described below

commit 7b0a2f5d8e6c3ff17094a7c1e31440300defb0b7
Author: mucio <mu...@mucio.net>
AuthorDate: Sat Oct 10 00:44:59 2020 +0200

    Replaced basestring with str in the Exasol hook (#11360)
---
 airflow/providers/exasol/hooks/exasol.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/airflow/providers/exasol/hooks/exasol.py b/airflow/providers/exasol/hooks/exasol.py
index f247812..c22a353 100644
--- a/airflow/providers/exasol/hooks/exasol.py
+++ b/airflow/providers/exasol/hooks/exasol.py
@@ -20,7 +20,6 @@ from contextlib import closing
 from typing import Union, Optional, List, Tuple, Any
 
 import pyexasol
-from past.builtins import basestring
 from pyexasol import ExaConnection
 
 from airflow.hooks.dbapi_hook import DbApiHook
@@ -122,7 +121,7 @@ class ExasolHook(DbApiHook):
         :param parameters: The parameters to render the SQL query with.
         :type parameters: dict or iterable
         """
-        if isinstance(sql, basestring):
+        if isinstance(sql, str):
             sql = [sql]
 
         with closing(self.get_conn()) as conn: