You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/06/17 11:33:50 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #5406: [AIRFLOW-4681] Fix pylint problems for sensors module

potiuk commented on a change in pull request #5406: [AIRFLOW-4681] Fix pylint problems for sensors module
URL: https://github.com/apache/airflow/pull/5406#discussion_r294253370
 
 

 ##########
 File path: airflow/sensors/hdfs_sensor.py
 ##########
 @@ -45,6 +51,13 @@ def __init__(self,
                  *args,
                  **kwargs):
         super().__init__(*args, **kwargs)
+        if not snakebite_loaded:
+            raise ImportError(
+                'This HdfsSensor implementation requires snakebite, but '
+                'snakebite is not compatible with Python 3 '
+                '(as of August 2015). Please use Python 2 if you require '
+                'this hook  -- or help by submitting a PR!')
 
 Review comment:
   I think @mik-laj uses vim mostly ;). But indeed if it was IntelliJ I had to set line length to 110 in my IDE from the default 80 so I guess that's the reason.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services