From d5e44a5bced06d45147e3d4c257e2e2bfdc1f941 Mon Sep 17 00:00:00 2001 From: Radovan Bast Date: Wed, 18 May 2016 22:45:11 +0200 Subject: [PATCH] rm redundant imports --- update.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/update.py b/update.py index 5a31141..c45f3ee 100644 --- a/update.py +++ b/update.py @@ -2,8 +2,6 @@ import os import sys -import ast -import collections AUTOCMAKE_GITHUB_URL = 'https://github.com/coderefinery/autocmake/raw/yaml/' @@ -36,7 +34,7 @@ def fetch_modules(config, relative_path): Assemble modules which will be included in CMakeLists.txt. """ - from collections import Iterable + from collections import Iterable, namedtuple from autocmake.extract import extract_list download_directory = 'downloaded' @@ -47,7 +45,7 @@ def fetch_modules(config, relative_path): sources = extract_list(config, 'source') modules = [] - Module = collections.namedtuple('Module', 'path name') + Module = namedtuple('Module', 'path name') warnings = []