From: Zbigniew Jędrzejewski-Szmek Date: Mon, 3 Jul 2017 00:26:32 +0000 (-0400) Subject: python: remove star imports X-Git-Tag: v235~308^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c6c3ef0bfca3be3cd467adba52f5a235b3ab163;p=thirdparty%2Fsystemd.git python: remove star imports Star imports are discouraged and break pyflakes. I'm happy to report that pyflakes finds no issues ;) --- diff --git a/tools/make-directive-index.py b/tools/make-directive-index.py index 1b287997fa7..f9203ddd1a5 100755 --- a/tools/make-directive-index.py +++ b/tools/make-directive-index.py @@ -21,7 +21,7 @@ import sys import collections import re -from xml_helper import * +from xml_helper import xml_parse, xml_print, tree from copy import deepcopy TEMPLATE = '''\ diff --git a/tools/make-man-index.py b/tools/make-man-index.py index abc33e7394d..0618e2e677f 100755 --- a/tools/make-man-index.py +++ b/tools/make-man-index.py @@ -22,7 +22,7 @@ import collections import sys import re -from xml_helper import * +from xml_helper import xml_parse, xml_print, tree MDASH = ' — ' if sys.version_info.major >= 3 else ' -- ' diff --git a/tools/make-man-rules.py b/tools/make-man-rules.py index da94d3eabe1..e0f18d6fbee 100755 --- a/tools/make-man-rules.py +++ b/tools/make-man-rules.py @@ -23,7 +23,7 @@ import collections import sys import os.path import pprint -from xml_helper import * +from xml_helper import xml_parse def man(page, number): return '{}.{}'.format(page, number)