mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Avoid 'import *' where __all__ not defined. #1834
This commit is contained in:
@@ -134,8 +134,8 @@ from radialnet.gui.ControlWidget import ControlWidget, ControlFisheye
|
||||
from radialnet.gui.Toolbar import Toolbar
|
||||
from radialnet.gui.Image import Pixmaps
|
||||
import radialnet.gui.RadialNet as RadialNet
|
||||
from radialnet.bestwidgets.windows import *
|
||||
from radialnet.bestwidgets.boxes import *
|
||||
from radialnet.bestwidgets.windows import BWMainWindow, BWAlertDialog
|
||||
from radialnet.bestwidgets.boxes import BWHBox, BWVBox, BWStatusbar
|
||||
|
||||
|
||||
DIMENSION = (640, 480)
|
||||
|
||||
@@ -129,7 +129,7 @@ import re
|
||||
import gtk
|
||||
import gobject
|
||||
|
||||
from radialnet.bestwidgets.windows import *
|
||||
from radialnet.bestwidgets.windows import BWMainWindow
|
||||
|
||||
from radialnet.gui.NodeNotebook import NodeNotebook
|
||||
from radialnet.util.misc import ipv4_compare
|
||||
|
||||
@@ -132,11 +132,7 @@ import cairo
|
||||
|
||||
import zenmapCore.I18N # lgtm[py/unused-import]
|
||||
|
||||
from radialnet.bestwidgets.windows import *
|
||||
from radialnet.bestwidgets.boxes import *
|
||||
from radialnet.bestwidgets.labels import *
|
||||
from radialnet.gui.Image import Pixmaps
|
||||
from radialnet.util.drawing import *
|
||||
DIMENSION_NORMAL = (350, 450)
|
||||
|
||||
|
||||
|
||||
@@ -129,10 +129,10 @@ import gtk
|
||||
import pango
|
||||
import gobject
|
||||
|
||||
from radialnet.bestwidgets.boxes import *
|
||||
from radialnet.bestwidgets.boxes import BWVBox, BWHBox, BWScrolledWindow, BWTable
|
||||
from radialnet.bestwidgets.expanders import BWExpander
|
||||
from radialnet.bestwidgets.labels import *
|
||||
from radialnet.bestwidgets.textview import *
|
||||
from radialnet.bestwidgets.labels import BWLabel, BWSectionLabel
|
||||
from radialnet.bestwidgets.textview import BWTextEditor
|
||||
import zenmapCore.I18N # lgtm[py/unused-import]
|
||||
|
||||
|
||||
|
||||
@@ -130,9 +130,9 @@ import pango
|
||||
|
||||
import radialnet.util.drawing as drawing
|
||||
|
||||
from radialnet.bestwidgets.windows import *
|
||||
from radialnet.bestwidgets.boxes import *
|
||||
from radialnet.bestwidgets.labels import *
|
||||
from radialnet.bestwidgets.windows import BWWindow
|
||||
from radialnet.bestwidgets.boxes import BWVBox, BWHBox
|
||||
from radialnet.bestwidgets.labels import BWSectionLabel
|
||||
from radialnet.gui.Image import Application
|
||||
from radialnet.gui.NodeNotebook import NodeNotebook
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
|
||||
import gtk
|
||||
|
||||
from radialnet.bestwidgets.buttons import *
|
||||
from radialnet.bestwidgets.buttons import BWStockButton, BWToggleStockButton
|
||||
from radialnet.gui.SaveDialog import SaveDialog
|
||||
from radialnet.gui.Dialogs import AboutDialog
|
||||
from radialnet.gui.LegendWindow import LegendWindow
|
||||
|
||||
@@ -129,8 +129,8 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
from core.ArgvHandle import *
|
||||
from gui.Application import *
|
||||
from core.ArgvHandle import ArgvHandle
|
||||
from gui.Application import Application
|
||||
|
||||
|
||||
USAGE = """\
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
|
||||
from radialnet.core.Graph import *
|
||||
from radialnet.core.Graph import Graph
|
||||
from radialnet.gui.RadialNet import NetNode
|
||||
|
||||
import math
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
# ***************************************************************************/
|
||||
|
||||
from radialnet.core.Coordinate import CartesianCoordinate
|
||||
from radialnet.util.geometry import *
|
||||
from radialnet.util.geometry import normalize_angle
|
||||
import math
|
||||
|
||||
|
||||
|
||||
@@ -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