150 n = i |
150 n = i |
151 if i in modules: |
151 if i in modules: |
152 impLst.append(n) |
152 impLst.append(n) |
153 elif self.showExternalImports: |
153 elif self.showExternalImports: |
154 impLst.append(n) |
154 impLst.append(n) |
155 if not n in externalMods: |
155 if n not in externalMods: |
156 externalMods.append(n) |
156 externalMods.append(n) |
157 for i in list(modules[module].from_imports.keys()): |
157 for i in list(modules[module].from_imports.keys()): |
158 if i.startswith('.'): |
158 if i.startswith('.'): |
159 dots = len(i) - len(i.lstrip('.')) |
159 dots = len(i) - len(i.lstrip('.')) |
160 if dots == 1: |
160 if dots == 1: |
173 n = i |
173 n = i |
174 if i in modules: |
174 if i in modules: |
175 impLst.append(n) |
175 impLst.append(n) |
176 elif self.showExternalImports: |
176 elif self.showExternalImports: |
177 impLst.append(n) |
177 impLst.append(n) |
178 if not n in externalMods: |
178 if n not in externalMods: |
179 externalMods.append(n) |
179 externalMods.append(n) |
180 classNames = [] |
180 classNames = [] |
181 for cls in list(modules[module].classes.keys()): |
181 for cls in list(modules[module].classes.keys()): |
182 className = modules[module].classes[cls].name |
182 className = modules[module].classes[cls].name |
183 if className not in classNames: |
183 if className not in classNames: |