mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 17:09:02 +00:00
Avoid 'import *' where __all__ not defined. #1834
This commit is contained in:
@@ -144,7 +144,9 @@ from zenmapGUI.higwidgets.higlabels import HIGEntryLabel
|
||||
from zenmapGUI.higwidgets.higboxes import HIGHBox, HIGVBox
|
||||
|
||||
import zenmapGUI.App
|
||||
from zenmapGUI.FileChoosers import *
|
||||
from zenmapGUI.FileChoosers import RESPONSE_OPEN_DIRECTORY, \
|
||||
ResultsFileChooserDialog, SaveResultsFileChooserDialog, \
|
||||
SaveToDirectoryChooserDialog
|
||||
from zenmapGUI.ScanInterface import ScanInterface
|
||||
from zenmapGUI.ProfileEditor import ProfileEditor
|
||||
from zenmapGUI.About import About
|
||||
|
||||
@@ -144,7 +144,7 @@ from zenmapGUI.ProfileHelp import ProfileHelp
|
||||
|
||||
from zenmapCore.NmapOptions import NmapOptions, split_quoted, join_quoted
|
||||
import zenmapCore.I18N # lgtm[py/unused-import]
|
||||
from zenmapGUI.ScriptInterface import *
|
||||
from zenmapGUI.ScriptInterface import ScriptInterface
|
||||
|
||||
|
||||
def get_option_check_auxiliary_widget(option, ops, check):
|
||||
|
||||
@@ -137,7 +137,7 @@ from zenmapGUI.higwidgets.higtextviewers import HIGTextView
|
||||
from zenmapGUI.higwidgets.higbuttons import HIGButton
|
||||
from zenmapGUI.higwidgets.higtables import HIGTable
|
||||
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog, HIGDialog
|
||||
from zenmapGUI.OptionBuilder import *
|
||||
from zenmapGUI.OptionBuilder import OptionBuilder
|
||||
from zenmapCore.Paths import Path
|
||||
from zenmapCore.UmitConf import CommandProfile
|
||||
from zenmapCore.UmitLogging import log
|
||||
|
||||
@@ -141,7 +141,7 @@ import xml.sax
|
||||
from zenmapGUI.higwidgets.higboxes import HIGVBox, HIGHBox
|
||||
from zenmapGUI.higwidgets.higscrollers import HIGScrolledWindow
|
||||
from zenmapGUI.higwidgets.higbuttons import HIGButton
|
||||
from zenmapCore.ScriptMetadata import *
|
||||
from zenmapCore.ScriptMetadata import get_script_entries
|
||||
from zenmapCore.ScriptArgsParser import parse_script_args_dict
|
||||
from zenmapCore.NmapCommand import NmapCommand
|
||||
from zenmapCore.NmapOptions import NmapOptions
|
||||
|
||||
@@ -128,15 +128,11 @@
|
||||
|
||||
import gtk
|
||||
|
||||
from zenmapGUI.ScanToolbar import *
|
||||
|
||||
from zenmapGUI.higwidgets.higboxes import HIGVBox
|
||||
|
||||
import radialnet.gui.RadialNet as RadialNet
|
||||
from radialnet.gui.ControlWidget import *
|
||||
from radialnet.gui.ControlWidget import ControlWidget, ControlFisheye
|
||||
from radialnet.gui.Toolbar import Toolbar
|
||||
from radialnet.bestwidgets.boxes import *
|
||||
from radialnet.bestwidgets.windows import *
|
||||
from radialnet.util.integration import make_graph_from_hosts
|
||||
|
||||
|
||||
|
||||
@@ -134,6 +134,8 @@ higwidgets/higentries.py
|
||||
|
||||
import gtk
|
||||
|
||||
__all__ = ('HIGTextEntry', 'HIGPasswordEntry')
|
||||
|
||||
HIGTextEntry = gtk.Entry
|
||||
|
||||
|
||||
|
||||
@@ -134,6 +134,8 @@ higwidgets/higwindows.py
|
||||
|
||||
import gtk
|
||||
|
||||
__all__ = ('HIGWindow', 'HIGMainWindow')
|
||||
|
||||
|
||||
class HIGWindow(gtk.Window):
|
||||
"""HIGFied Window"""
|
||||
|
||||
Reference in New Issue
Block a user