fix import problems with negative kill_counts, fixes #111

This commit is contained in:
David Halter
2013-01-14 21:25:48 +01:00
parent d08ee04fbb
commit ac2b0016d5
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class ImportPath(parsing.Base):
self.import_stmt = import_stmt
self.is_like_search = is_like_search
self.direct_resolve = direct_resolve
self.is_partial_import = bool(kill_count)
self.is_partial_import = bool(max(0, kill_count))
path = import_stmt.get_parent_until().path
self.file_path = os.path.dirname(path) if path is not None else None