Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating to be able to handle astroid 2.0 node names but keep backwar…
…ds compatibility too
- Loading branch information
Carl
committed
Jul 22, 2018
1 parent
3cfcefd
commit 5c97a18
Showing
3 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Various shims to deal with node renames between astroid versions - astroid 2.0 renamed | ||
# some of the nodes used by this library so for backwards compatibility, old names are | ||
# translated to new. | ||
|
||
try: | ||
from astroid import Call | ||
except ImportError: | ||
from astroid import CallFunc as Call | ||
|
||
|
||
try: | ||
from astroid import AssignName | ||
except ImportError: | ||
from astroid import AssName as AssignName | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters