[ 
https://issues.apache.org/jira/browse/AIRFLOW-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16572156#comment-16572156
 ] 

ASF subversion and git services commented on AIRFLOW-2851:
----------------------------------------------------------

Commit 9131d6cc8fce515222da6e4ab9d86cce69f20d1e in incubator-airflow's branch 
refs/heads/master from Taylor D. Edmiston
[ https://gitbox.apache.org/repos/asf?p=incubator-airflow.git;h=9131d6c ]

[AIRFLOW-2851] Canonicalize "as _..." etc imports (#3696)



> Canonicalize "as _..." etc imports
> ----------------------------------
>
>                 Key: AIRFLOW-2851
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2851
>             Project: Apache Airflow
>          Issue Type: Improvement
>            Reporter: Taylor Edmiston
>            Assignee: Taylor Edmiston
>            Priority: Minor
>
> This PR:
> 1. Replaces `import foo as _foo` style imports with the more common `import 
> foo` used everywhere else across the codebase. I dug through history and 
> couldn't find special reasons to maintain the as style imports here (I think 
> it's just old code). Currently (33dd33c89d4b6454d224ca34bab5ae37fb9812a6), 
> there are just a handful of import lines using `as _...` vs thousands not 
> using it, so the goal here is to improve consistency.
> 2. It also simplifies `import foo.bar as bar` style imports to equivalent 
> `from foo import bar`.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to