1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00

Avoid 'import *' where __all__ not defined. #1834

This commit is contained in:
dmiller
2019-12-30 15:54:34 +00:00
parent 2abcac9925
commit c89035b6dd
16 changed files with 25 additions and 27 deletions

View File

@@ -134,8 +134,8 @@ from radialnet.gui.ControlWidget import ControlWidget, ControlFisheye
from radialnet.gui.Toolbar import Toolbar from radialnet.gui.Toolbar import Toolbar
from radialnet.gui.Image import Pixmaps from radialnet.gui.Image import Pixmaps
import radialnet.gui.RadialNet as RadialNet import radialnet.gui.RadialNet as RadialNet
from radialnet.bestwidgets.windows import * from radialnet.bestwidgets.windows import BWMainWindow, BWAlertDialog
from radialnet.bestwidgets.boxes import * from radialnet.bestwidgets.boxes import BWHBox, BWVBox, BWStatusbar
DIMENSION = (640, 480) DIMENSION = (640, 480)

View File

@@ -129,7 +129,7 @@ import re
import gtk import gtk
import gobject import gobject
from radialnet.bestwidgets.windows import * from radialnet.bestwidgets.windows import BWMainWindow
from radialnet.gui.NodeNotebook import NodeNotebook from radialnet.gui.NodeNotebook import NodeNotebook
from radialnet.util.misc import ipv4_compare from radialnet.util.misc import ipv4_compare

View File

@@ -132,11 +132,7 @@ import cairo
import zenmapCore.I18N # lgtm[py/unused-import] 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.gui.Image import Pixmaps
from radialnet.util.drawing import *
DIMENSION_NORMAL = (350, 450) DIMENSION_NORMAL = (350, 450)

View File

@@ -129,10 +129,10 @@ import gtk
import pango import pango
import gobject 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.expanders import BWExpander
from radialnet.bestwidgets.labels import * from radialnet.bestwidgets.labels import BWLabel, BWSectionLabel
from radialnet.bestwidgets.textview import * from radialnet.bestwidgets.textview import BWTextEditor
import zenmapCore.I18N # lgtm[py/unused-import] import zenmapCore.I18N # lgtm[py/unused-import]

View File

@@ -130,9 +130,9 @@ import pango
import radialnet.util.drawing as drawing import radialnet.util.drawing as drawing
from radialnet.bestwidgets.windows import * from radialnet.bestwidgets.windows import BWWindow
from radialnet.bestwidgets.boxes import * from radialnet.bestwidgets.boxes import BWVBox, BWHBox
from radialnet.bestwidgets.labels import * from radialnet.bestwidgets.labels import BWSectionLabel
from radialnet.gui.Image import Application from radialnet.gui.Image import Application
from radialnet.gui.NodeNotebook import NodeNotebook from radialnet.gui.NodeNotebook import NodeNotebook

View File

@@ -127,7 +127,7 @@
import gtk import gtk
from radialnet.bestwidgets.buttons import * from radialnet.bestwidgets.buttons import BWStockButton, BWToggleStockButton
from radialnet.gui.SaveDialog import SaveDialog from radialnet.gui.SaveDialog import SaveDialog
from radialnet.gui.Dialogs import AboutDialog from radialnet.gui.Dialogs import AboutDialog
from radialnet.gui.LegendWindow import LegendWindow from radialnet.gui.LegendWindow import LegendWindow

View File

@@ -129,8 +129,8 @@
import os import os
import sys import sys
from core.ArgvHandle import * from core.ArgvHandle import ArgvHandle
from gui.Application import * from gui.Application import Application
USAGE = """\ USAGE = """\

View File

@@ -125,7 +125,7 @@
# * * # * *
# ***************************************************************************/ # ***************************************************************************/
from radialnet.core.Graph import * from radialnet.core.Graph import Graph
from radialnet.gui.RadialNet import NetNode from radialnet.gui.RadialNet import NetNode
import math import math

View File

@@ -126,7 +126,7 @@
# ***************************************************************************/ # ***************************************************************************/
from radialnet.core.Coordinate import CartesianCoordinate from radialnet.core.Coordinate import CartesianCoordinate
from radialnet.util.geometry import * from radialnet.util.geometry import normalize_angle
import math import math

View File

@@ -144,7 +144,9 @@ from zenmapGUI.higwidgets.higlabels import HIGEntryLabel
from zenmapGUI.higwidgets.higboxes import HIGHBox, HIGVBox from zenmapGUI.higwidgets.higboxes import HIGHBox, HIGVBox
import zenmapGUI.App import zenmapGUI.App
from zenmapGUI.FileChoosers import * from zenmapGUI.FileChoosers import RESPONSE_OPEN_DIRECTORY, \
ResultsFileChooserDialog, SaveResultsFileChooserDialog, \
SaveToDirectoryChooserDialog
from zenmapGUI.ScanInterface import ScanInterface from zenmapGUI.ScanInterface import ScanInterface
from zenmapGUI.ProfileEditor import ProfileEditor from zenmapGUI.ProfileEditor import ProfileEditor
from zenmapGUI.About import About from zenmapGUI.About import About

View File

@@ -144,7 +144,7 @@ from zenmapGUI.ProfileHelp import ProfileHelp
from zenmapCore.NmapOptions import NmapOptions, split_quoted, join_quoted from zenmapCore.NmapOptions import NmapOptions, split_quoted, join_quoted
import zenmapCore.I18N # lgtm[py/unused-import] 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): def get_option_check_auxiliary_widget(option, ops, check):

View File

@@ -137,7 +137,7 @@ from zenmapGUI.higwidgets.higtextviewers import HIGTextView
from zenmapGUI.higwidgets.higbuttons import HIGButton from zenmapGUI.higwidgets.higbuttons import HIGButton
from zenmapGUI.higwidgets.higtables import HIGTable from zenmapGUI.higwidgets.higtables import HIGTable
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog, HIGDialog from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog, HIGDialog
from zenmapGUI.OptionBuilder import * from zenmapGUI.OptionBuilder import OptionBuilder
from zenmapCore.Paths import Path from zenmapCore.Paths import Path
from zenmapCore.UmitConf import CommandProfile from zenmapCore.UmitConf import CommandProfile
from zenmapCore.UmitLogging import log from zenmapCore.UmitLogging import log

View File

@@ -141,7 +141,7 @@ import xml.sax
from zenmapGUI.higwidgets.higboxes import HIGVBox, HIGHBox from zenmapGUI.higwidgets.higboxes import HIGVBox, HIGHBox
from zenmapGUI.higwidgets.higscrollers import HIGScrolledWindow from zenmapGUI.higwidgets.higscrollers import HIGScrolledWindow
from zenmapGUI.higwidgets.higbuttons import HIGButton 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.ScriptArgsParser import parse_script_args_dict
from zenmapCore.NmapCommand import NmapCommand from zenmapCore.NmapCommand import NmapCommand
from zenmapCore.NmapOptions import NmapOptions from zenmapCore.NmapOptions import NmapOptions

View File

@@ -128,15 +128,11 @@
import gtk import gtk
from zenmapGUI.ScanToolbar import *
from zenmapGUI.higwidgets.higboxes import HIGVBox from zenmapGUI.higwidgets.higboxes import HIGVBox
import radialnet.gui.RadialNet as RadialNet 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.gui.Toolbar import Toolbar
from radialnet.bestwidgets.boxes import *
from radialnet.bestwidgets.windows import *
from radialnet.util.integration import make_graph_from_hosts from radialnet.util.integration import make_graph_from_hosts

View File

@@ -134,6 +134,8 @@ higwidgets/higentries.py
import gtk import gtk
__all__ = ('HIGTextEntry', 'HIGPasswordEntry')
HIGTextEntry = gtk.Entry HIGTextEntry = gtk.Entry

View File

@@ -134,6 +134,8 @@ higwidgets/higwindows.py
import gtk import gtk
__all__ = ('HIGWindow', 'HIGMainWindow')
class HIGWindow(gtk.Window): class HIGWindow(gtk.Window):
"""HIGFied Window""" """HIGFied Window"""