Remove a function that was not really needed.

This commit is contained in:
Dave Halter committed 2017-05-07 16:00:08 +02:00
1 parent 84d8279089
commit 6c95f73d77
2 files changed
+3 -7

No files matched your search

+2 -6
View File
@@ -742,16 +742,12 @@ class ImportFrom(Import):
else:
yield as_name.children[::2] # yields x, y -> ``x as y``
def star_import_name(self):
"""
The last name defined in a star import.
"""
return self.get_paths()[-1][-1]
def get_paths(self):
"""
The import paths defined in an import statement. Typically an array
like this: ``[<Name: datetime>, <Name: date>]``.
:return list of list of Name:
"""
dotted = self.get_from_names()