]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
python: remove star imports
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 3 Jul 2017 00:26:32 +0000 (20:26 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Jul 2017 14:04:44 +0000 (10:04 -0400)
Star imports are discouraged and break pyflakes.

I'm happy to report that pyflakes finds no issues ;)

tools/make-directive-index.py
tools/make-man-index.py
tools/make-man-rules.py

index 1b287997fa7e6839e665b2498506020309a07b76..f9203ddd1a5a999be51eb87afb4730248f6b6471 100755 (executable)
@@ -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 = '''\
index abc33e7394d9a8251c94cc278d920a8afe75d79a..0618e2e677f9dc71ac0836e4cc93b3589fb27d21 100755 (executable)
@@ -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 ' -- '
 
index da94d3eabe19a2b3f54f59307ed5ac85e8bb2a3a..e0f18d6fbee941801f0050f6210bde4dbb544ae0 100755 (executable)
@@ -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)