From 01ea104c1e404de6064303d627eeb63705af6480 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 3 Jan 2018 15:30:34 +0100 Subject: =?UTF-8?q?canonicalize:=20support=20=C2=BBimport=20*=C2=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- canonicalize/astTools.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'canonicalize') diff --git a/canonicalize/astTools.py b/canonicalize/astTools.py index b84b2c5..f644316 100644 --- a/canonicalize/astTools.py +++ b/canonicalize/astTools.py @@ -32,6 +32,8 @@ def importedName(id, importList): if imp.module in supportedLibraries: libMap = libraryMap[imp.module] for name in imp.names: + if name.name == '*' and id in libMap: + return True if hasattr(name, "asname") and name.asname != None: if id == name.asname: return True -- cgit v1.2.1