mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Remove unused imports
This commit is contained in:
@@ -125,8 +125,6 @@
|
|||||||
# * *
|
# * *
|
||||||
# ***************************************************************************/
|
# ***************************************************************************/
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
|
|
||||||
INFO = {'name': 'RadialNet',
|
INFO = {'name': 'RadialNet',
|
||||||
'version': '0.44',
|
'version': '0.44',
|
||||||
|
|||||||
@@ -129,7 +129,6 @@ import gtk
|
|||||||
import math
|
import math
|
||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
import radialnet.util.drawing as drawing
|
|
||||||
import radialnet.util.geometry as geometry
|
import radialnet.util.geometry as geometry
|
||||||
|
|
||||||
from radialnet.bestwidgets.boxes import *
|
from radialnet.bestwidgets.boxes import *
|
||||||
|
|||||||
@@ -126,7 +126,6 @@
|
|||||||
# ***************************************************************************/
|
# ***************************************************************************/
|
||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
import pango
|
|
||||||
|
|
||||||
from radialnet.core.Info import INFO
|
from radialnet.core.Info import INFO
|
||||||
from radialnet.gui.Image import Pixmaps
|
from radialnet.gui.Image import Pixmaps
|
||||||
|
|||||||
@@ -126,7 +126,6 @@
|
|||||||
# ***************************************************************************/
|
# ***************************************************************************/
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import gtk
|
import gtk
|
||||||
import array
|
import array
|
||||||
|
|
||||||
|
|||||||
@@ -131,13 +131,11 @@ import math
|
|||||||
import cairo
|
import cairo
|
||||||
|
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
import radialnet.util.drawing as drawing
|
|
||||||
|
|
||||||
from radialnet.bestwidgets.windows import *
|
from radialnet.bestwidgets.windows import *
|
||||||
from radialnet.bestwidgets.boxes import *
|
from radialnet.bestwidgets.boxes import *
|
||||||
from radialnet.bestwidgets.labels import *
|
from radialnet.bestwidgets.labels import *
|
||||||
from radialnet.gui.Image import Pixmaps
|
from radialnet.gui.Image import Pixmaps
|
||||||
from radialnet.gui.NodeNotebook import NodeNotebook
|
|
||||||
from radialnet.util.drawing import *
|
from radialnet.util.drawing import *
|
||||||
DIMENSION_NORMAL = (350, 450)
|
DIMENSION_NORMAL = (350, 450)
|
||||||
|
|
||||||
|
|||||||
@@ -127,18 +127,15 @@
|
|||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
import math
|
import math
|
||||||
import time
|
|
||||||
import copy
|
|
||||||
import cairo
|
import cairo
|
||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
import radialnet.util.drawing as drawing
|
|
||||||
import radialnet.util.geometry as geometry
|
import radialnet.util.geometry as geometry
|
||||||
import radialnet.util.misc as misc
|
import radialnet.util.misc as misc
|
||||||
|
|
||||||
from radialnet.core.Coordinate import PolarCoordinate, CartesianCoordinate
|
from radialnet.core.Coordinate import PolarCoordinate, CartesianCoordinate
|
||||||
from radialnet.core.Interpolation import Linear2DInterpolator
|
from radialnet.core.Interpolation import Linear2DInterpolator
|
||||||
from radialnet.core.Graph import Graph, Node
|
from radialnet.core.Graph import Node
|
||||||
from radialnet.gui.NodeWindow import NodeWindow
|
from radialnet.gui.NodeWindow import NodeWindow
|
||||||
from radialnet.gui.Image import Icons, get_pixels_for_cairo_image_surface
|
from radialnet.gui.Image import Icons, get_pixels_for_cairo_image_surface
|
||||||
|
|
||||||
|
|||||||
@@ -125,9 +125,7 @@
|
|||||||
# * *
|
# * *
|
||||||
# ***************************************************************************/
|
# ***************************************************************************/
|
||||||
|
|
||||||
import os
|
|
||||||
import gtk
|
import gtk
|
||||||
import gobject
|
|
||||||
|
|
||||||
from radialnet.bestwidgets.buttons import *
|
from radialnet.bestwidgets.buttons import *
|
||||||
from radialnet.gui.SaveDialog import SaveDialog
|
from radialnet.gui.SaveDialog import SaveDialog
|
||||||
|
|||||||
@@ -128,7 +128,6 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import gtk
|
|
||||||
|
|
||||||
from core.ArgvHandle import *
|
from core.ArgvHandle import *
|
||||||
from gui.Application import *
|
from gui.Application import *
|
||||||
|
|||||||
@@ -125,8 +125,6 @@
|
|||||||
# * *
|
# * *
|
||||||
# ***************************************************************************/
|
# ***************************************************************************/
|
||||||
|
|
||||||
import math
|
|
||||||
|
|
||||||
|
|
||||||
def cairo_to_gdk_color(color):
|
def cairo_to_gdk_color(color):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -127,7 +127,6 @@
|
|||||||
|
|
||||||
from radialnet.core.Graph import *
|
from radialnet.core.Graph import *
|
||||||
from radialnet.gui.RadialNet import NetNode
|
from radialnet.gui.RadialNet import NetNode
|
||||||
import zenmapCore.NmapParser
|
|
||||||
|
|
||||||
import math
|
import math
|
||||||
|
|
||||||
|
|||||||
@@ -126,7 +126,6 @@
|
|||||||
# * *
|
# * *
|
||||||
# ***************************************************************************/
|
# ***************************************************************************/
|
||||||
|
|
||||||
import datetime
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
@@ -128,7 +128,6 @@
|
|||||||
|
|
||||||
import locale
|
import locale
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
|
|
||||||
from zenmapCore.Name import APP_NAME
|
from zenmapCore.Name import APP_NAME
|
||||||
|
|
||||||
|
|||||||
@@ -139,14 +139,12 @@ import unittest
|
|||||||
|
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
|
|
||||||
from types import StringTypes
|
|
||||||
try:
|
try:
|
||||||
import subprocess
|
import subprocess
|
||||||
except ImportError, e:
|
except ImportError, e:
|
||||||
raise ImportError(str(e) + ".\n" + _("Python 2.4 or later is required."))
|
raise ImportError(str(e) + ".\n" + _("Python 2.4 or later is required."))
|
||||||
|
|
||||||
import zenmapCore.Paths
|
import zenmapCore.Paths
|
||||||
from zenmapCore.Paths import Path
|
|
||||||
from zenmapCore.NmapOptions import NmapOptions
|
from zenmapCore.NmapOptions import NmapOptions
|
||||||
from zenmapCore.UmitLogging import log
|
from zenmapCore.UmitLogging import log
|
||||||
from zenmapCore.UmitConf import PathsConfig
|
from zenmapCore.UmitConf import PathsConfig
|
||||||
|
|||||||
@@ -127,8 +127,6 @@
|
|||||||
# ***************************************************************************/
|
# ***************************************************************************/
|
||||||
|
|
||||||
import locale
|
import locale
|
||||||
import os
|
|
||||||
import os.path
|
|
||||||
import time
|
import time
|
||||||
import socket
|
import socket
|
||||||
import copy
|
import copy
|
||||||
@@ -143,7 +141,6 @@ except ImportError:
|
|||||||
import xml
|
import xml
|
||||||
xml.__path__ = [x for x in xml.__path__ if "_xmlplus" not in x]
|
xml.__path__ = [x for x in xml.__path__ if "_xmlplus" not in x]
|
||||||
|
|
||||||
from types import StringTypes
|
|
||||||
from xml.sax import make_parser
|
from xml.sax import make_parser
|
||||||
from xml.sax import SAXException
|
from xml.sax import SAXException
|
||||||
from xml.sax.handler import ContentHandler, EntityResolver
|
from xml.sax.handler import ContentHandler, EntityResolver
|
||||||
@@ -151,8 +148,7 @@ from xml.sax.saxutils import XMLGenerator
|
|||||||
from xml.sax.xmlreader import AttributesImpl as Attributes
|
from xml.sax.xmlreader import AttributesImpl as Attributes
|
||||||
|
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
from zenmapCore.UmitLogging import log
|
from zenmapCore.NmapOptions import NmapOptions, join_quoted
|
||||||
from zenmapCore.NmapOptions import NmapOptions, split_quoted, join_quoted
|
|
||||||
from zenmapCore.StringPool import unique
|
from zenmapCore.StringPool import unique
|
||||||
|
|
||||||
# The version of the Nmap DTD this file understands and emits.
|
# The version of the Nmap DTD this file understands and emits.
|
||||||
|
|||||||
@@ -135,7 +135,6 @@ import sys
|
|||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from zenmapCore.BasePaths import base_paths, fs_dec
|
from zenmapCore.BasePaths import base_paths, fs_dec
|
||||||
from zenmapCore.Version import VERSION
|
|
||||||
from zenmapCore.Name import APP_NAME
|
from zenmapCore.Name import APP_NAME
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -180,8 +180,6 @@ class RecentScans(object):
|
|||||||
recent_scans = RecentScans()
|
recent_scans = RecentScans()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import sys
|
|
||||||
from os.path import split
|
|
||||||
r = RecentScans()
|
r = RecentScans()
|
||||||
print ">>> Getting empty list:", r.get_recent_scans_list()
|
print ">>> Getting empty list:", r.get_recent_scans_list()
|
||||||
print ">>> Adding recent scan bla:", r.add_recent_scan("bla")
|
print ">>> Adding recent scan bla:", r.add_recent_scan("bla")
|
||||||
|
|||||||
@@ -134,9 +134,6 @@ import re
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from zenmapCore.Paths import Path
|
|
||||||
from zenmapCore.UmitLogging import log
|
|
||||||
|
|
||||||
|
|
||||||
class ScriptDBSyntaxError(SyntaxError):
|
class ScriptDBSyntaxError(SyntaxError):
|
||||||
"""Exception raised when encountering a syntax error in the script.db"""
|
"""Exception raised when encountering a syntax error in the script.db"""
|
||||||
|
|||||||
@@ -181,8 +181,6 @@ class TargetList(object):
|
|||||||
target_list = TargetList()
|
target_list = TargetList()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import sys
|
|
||||||
from os.path import split
|
|
||||||
t = TargetList()
|
t = TargetList()
|
||||||
print ">>> Getting empty list:", t.get_target_list()
|
print ">>> Getting empty list:", t.get_target_list()
|
||||||
print ">>> Adding target 127.0.0.1:", t.add_target("127.0.0.3")
|
print ">>> Adding target 127.0.0.1:", t.add_target("127.0.0.3")
|
||||||
|
|||||||
@@ -126,7 +126,6 @@
|
|||||||
# * *
|
# * *
|
||||||
# ***************************************************************************/
|
# ***************************************************************************/
|
||||||
|
|
||||||
from os.path import exists
|
|
||||||
from ConfigParser import ConfigParser, DEFAULTSECT, NoOptionError, \
|
from ConfigParser import ConfigParser, DEFAULTSECT, NoOptionError, \
|
||||||
NoSectionError
|
NoSectionError
|
||||||
from zenmapCore.UmitLogging import log
|
from zenmapCore.UmitLogging import log
|
||||||
|
|||||||
@@ -127,7 +127,7 @@
|
|||||||
# ***************************************************************************/
|
# ***************************************************************************/
|
||||||
|
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
from zenmapCore.Name import APP_NAME, NMAP_DISPLAY_NAME
|
from zenmapCore.Name import NMAP_DISPLAY_NAME
|
||||||
from zenmapCore.Version import VERSION
|
from zenmapCore.Version import VERSION
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
from zenmapCore.BasePaths import base_paths
|
from zenmapCore.BasePaths import base_paths
|
||||||
|
|||||||
@@ -127,7 +127,6 @@
|
|||||||
# ***************************************************************************/
|
# ***************************************************************************/
|
||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
import os.path
|
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
from zenmapGUI.higwidgets.higdialogs import HIGDialog
|
from zenmapGUI.higwidgets.higdialogs import HIGDialog
|
||||||
@@ -142,7 +141,6 @@ from zenmapGUI.higwidgets.higtextviewers import HIGTextView
|
|||||||
from zenmapCore.Name import APP_DISPLAY_NAME, APP_WEB_SITE, APP_COPYRIGHT, \
|
from zenmapCore.Name import APP_DISPLAY_NAME, APP_WEB_SITE, APP_COPYRIGHT, \
|
||||||
NMAP_DISPLAY_NAME, NMAP_WEB_SITE, UMIT_DISPLAY_NAME, UMIT_WEB_SITE
|
NMAP_DISPLAY_NAME, NMAP_WEB_SITE, UMIT_DISPLAY_NAME, UMIT_WEB_SITE
|
||||||
from zenmapCore.Version import VERSION
|
from zenmapCore.Version import VERSION
|
||||||
from zenmapCore.Paths import Path
|
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -159,15 +159,12 @@ warnings.resetwarnings()
|
|||||||
|
|
||||||
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
|
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
|
||||||
|
|
||||||
import zenmapCore.UmitConf
|
from zenmapCore.UmitConf import is_maemo, config_parser, SearchConfig
|
||||||
import zenmapCore.Paths
|
|
||||||
from zenmapCore.UmitConf import is_maemo
|
|
||||||
from zenmapCore.UmitLogging import log
|
from zenmapCore.UmitLogging import log
|
||||||
from zenmapCore.UmitOptionParser import option_parser
|
from zenmapCore.UmitOptionParser import option_parser
|
||||||
from zenmapCore.Name import APP_NAME, APP_DISPLAY_NAME, NMAP_DISPLAY_NAME
|
from zenmapCore.Name import APP_NAME, APP_DISPLAY_NAME, NMAP_DISPLAY_NAME
|
||||||
from zenmapCore.UmitConf import SearchConfig
|
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
from zenmapCore.Paths import Path
|
from zenmapCore.Paths import Path, create_user_config_dir
|
||||||
from zenmapCore.Name import APP_DISPLAY_NAME
|
from zenmapCore.Name import APP_DISPLAY_NAME
|
||||||
|
|
||||||
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
|
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
|
||||||
@@ -229,7 +226,6 @@ def install_excepthook():
|
|||||||
# Cause an exception if PyGTK can't open a display. Normally this just
|
# Cause an exception if PyGTK can't open a display. Normally this just
|
||||||
# produces a warning, but the lack of a display eventually causes a
|
# produces a warning, but the lack of a display eventually causes a
|
||||||
# segmentation fault. See http://live.gnome.org/PyGTK/WhatsNew210.
|
# segmentation fault. See http://live.gnome.org/PyGTK/WhatsNew210.
|
||||||
import warnings
|
|
||||||
warnings.filterwarnings("error", module="gtk")
|
warnings.filterwarnings("error", module="gtk")
|
||||||
import gtk
|
import gtk
|
||||||
warnings.resetwarnings()
|
warnings.resetwarnings()
|
||||||
@@ -284,7 +280,7 @@ def run():
|
|||||||
try:
|
try:
|
||||||
# Create the ~/.zenmap directory by copying from the system-wide
|
# Create the ~/.zenmap directory by copying from the system-wide
|
||||||
# template directory.
|
# template directory.
|
||||||
zenmapCore.Paths.create_user_config_dir(
|
create_user_config_dir(
|
||||||
Path.user_config_dir, Path.config_dir)
|
Path.user_config_dir, Path.config_dir)
|
||||||
except (IOError, OSError), e:
|
except (IOError, OSError), e:
|
||||||
error_dialog = HIGAlertDialog(
|
error_dialog = HIGAlertDialog(
|
||||||
@@ -309,11 +305,11 @@ scan profiles. Check for access to the directory and try again.""") % (
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Read the ~/.zenmap/zenmap.conf configuration file.
|
# Read the ~/.zenmap/zenmap.conf configuration file.
|
||||||
zenmapCore.UmitConf.config_parser.read(Path.user_config_file)
|
config_parser.read(Path.user_config_file)
|
||||||
except ConfigParser.ParsingError, e:
|
except ConfigParser.ParsingError, e:
|
||||||
# ParsingError can leave some values as lists instead of strings. Just
|
# ParsingError can leave some values as lists instead of strings. Just
|
||||||
# blow it all away if we have this problem.
|
# blow it all away if we have this problem.
|
||||||
zenmapCore.UmitConf.config_parser = zenmapCore.UmitConf.config_parser.__class__()
|
config_parser = config_parser.__class__()
|
||||||
error_dialog = HIGAlertDialog(
|
error_dialog = HIGAlertDialog(
|
||||||
message_format=_("Error parsing the configuration file"),
|
message_format=_("Error parsing the configuration file"),
|
||||||
secondary_text=_("""\
|
secondary_text=_("""\
|
||||||
|
|||||||
@@ -128,7 +128,6 @@
|
|||||||
|
|
||||||
import gobject
|
import gobject
|
||||||
import gtk
|
import gtk
|
||||||
import pango
|
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
import sys
|
import sys
|
||||||
@@ -139,7 +138,7 @@ xml.__path__ = [x for x in xml.__path__ if "_xmlplus" not in x]
|
|||||||
|
|
||||||
import xml.sax
|
import xml.sax
|
||||||
|
|
||||||
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog, HIGDialog
|
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
|
||||||
from zenmapGUI.higwidgets.higboxes import HIGVBox, HIGHBox, \
|
from zenmapGUI.higwidgets.higboxes import HIGVBox, HIGHBox, \
|
||||||
hig_box_space_holder
|
hig_box_space_holder
|
||||||
from zenmapGUI.higwidgets.higlabels import HIGSectionLabel
|
from zenmapGUI.higwidgets.higlabels import HIGSectionLabel
|
||||||
|
|||||||
@@ -129,11 +129,9 @@
|
|||||||
import gtk
|
import gtk
|
||||||
import gobject
|
import gobject
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
from zenmapCore.Paths import Path
|
from zenmapCore.Paths import Path
|
||||||
from zenmapCore.UmitConf import is_maemo
|
|
||||||
from zenmapCore.UmitLogging import log
|
from zenmapCore.UmitLogging import log
|
||||||
|
|
||||||
icon_names = (
|
icon_names = (
|
||||||
|
|||||||
@@ -130,8 +130,7 @@ import gtk
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
from os.path import split, isfile, join, abspath, exists
|
from os.path import split, isfile, join, abspath
|
||||||
import errno
|
|
||||||
|
|
||||||
# Prevent loading PyXML
|
# Prevent loading PyXML
|
||||||
import xml
|
import xml
|
||||||
@@ -139,13 +138,10 @@ xml.__path__ = [x for x in xml.__path__ if "_xmlplus" not in x]
|
|||||||
|
|
||||||
import xml.sax.saxutils
|
import xml.sax.saxutils
|
||||||
|
|
||||||
from time import time
|
|
||||||
|
|
||||||
from zenmapGUI.higwidgets.higwindows import HIGMainWindow
|
from zenmapGUI.higwidgets.higwindows import HIGMainWindow
|
||||||
from zenmapGUI.higwidgets.higdialogs import HIGDialog, HIGAlertDialog
|
from zenmapGUI.higwidgets.higdialogs import HIGDialog, HIGAlertDialog
|
||||||
from zenmapGUI.higwidgets.higlabels import HIGEntryLabel
|
from zenmapGUI.higwidgets.higlabels import HIGEntryLabel
|
||||||
from zenmapGUI.higwidgets.higboxes import HIGHBox, HIGVBox
|
from zenmapGUI.higwidgets.higboxes import HIGHBox, HIGVBox
|
||||||
from zenmapGUI.higwidgets.higlabels import HIGSectionLabel
|
|
||||||
|
|
||||||
import zenmapGUI.App
|
import zenmapGUI.App
|
||||||
from zenmapGUI.FileChoosers import *
|
from zenmapGUI.FileChoosers import *
|
||||||
@@ -164,7 +160,6 @@ from zenmapCore.UmitLogging import log
|
|||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
import zenmapGUI.Print
|
import zenmapGUI.Print
|
||||||
from zenmapCore.UmitConf import SearchConfig, is_maemo, WindowConfig, config_parser
|
from zenmapCore.UmitConf import SearchConfig, is_maemo, WindowConfig, config_parser
|
||||||
from zenmapCore.NetworkInventory import FilteredNetworkInventory
|
|
||||||
|
|
||||||
UmitScanWindow = None
|
UmitScanWindow = None
|
||||||
hildon = None
|
hildon = None
|
||||||
|
|||||||
@@ -126,8 +126,6 @@
|
|||||||
# * *
|
# * *
|
||||||
# ***************************************************************************/
|
# ***************************************************************************/
|
||||||
|
|
||||||
import locale
|
|
||||||
import sys
|
|
||||||
import gobject
|
import gobject
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.gdk
|
import gtk.gdk
|
||||||
|
|||||||
@@ -136,17 +136,14 @@ xml.__path__ = [x for x in xml.__path__ if "_xmlplus" not in x]
|
|||||||
|
|
||||||
from xml.dom import minidom
|
from xml.dom import minidom
|
||||||
|
|
||||||
from zenmapGUI.higwidgets.higboxes import HIGHBox
|
|
||||||
from zenmapGUI.higwidgets.higlabels import HIGEntryLabel
|
from zenmapGUI.higwidgets.higlabels import HIGEntryLabel
|
||||||
from zenmapGUI.higwidgets.higbuttons import HIGButton
|
from zenmapGUI.higwidgets.higbuttons import HIGButton
|
||||||
|
|
||||||
from zenmapGUI.FileChoosers import AllFilesFileChooserDialog
|
from zenmapGUI.FileChoosers import AllFilesFileChooserDialog
|
||||||
from zenmapGUI.ProfileHelp import ProfileHelp
|
from zenmapGUI.ProfileHelp import ProfileHelp
|
||||||
|
|
||||||
from zenmapCore.Paths import Path
|
|
||||||
from zenmapCore.NmapOptions import NmapOptions, split_quoted, join_quoted
|
from zenmapCore.NmapOptions import NmapOptions, split_quoted, join_quoted
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
from zenmapCore.UmitLogging import log
|
|
||||||
from zenmapGUI.ScriptInterface import *
|
from zenmapGUI.ScriptInterface import *
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ 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 *
|
||||||
from zenmapCore.Paths import Path
|
from zenmapCore.Paths import Path
|
||||||
from zenmapCore.UmitConf import Profile, CommandProfile
|
from zenmapCore.UmitConf import CommandProfile
|
||||||
from zenmapCore.UmitLogging import log
|
from zenmapCore.UmitLogging import log
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
from zenmapCore.NmapOptions import NmapOptions
|
from zenmapCore.NmapOptions import NmapOptions
|
||||||
|
|||||||
@@ -128,7 +128,6 @@
|
|||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
from types import StringTypes
|
|
||||||
from zenmapGUI.higwidgets.higboxes import HIGVBox
|
from zenmapGUI.higwidgets.higboxes import HIGVBox
|
||||||
from zenmapGUI.Icons import get_os_icon
|
from zenmapGUI.Icons import get_os_icon
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
|
|||||||
@@ -139,18 +139,16 @@ xml.__path__ = [x for x in xml.__path__ if "_xmlplus" not in x]
|
|||||||
|
|
||||||
import xml.sax
|
import xml.sax
|
||||||
|
|
||||||
from zenmapGUI.higwidgets.hignotebooks import HIGNotebook, HIGAnimatedTabLabel
|
from zenmapGUI.higwidgets.hignotebooks import HIGNotebook
|
||||||
from zenmapGUI.higwidgets.higboxes import HIGVBox, HIGHBox
|
from zenmapGUI.higwidgets.higboxes import HIGVBox
|
||||||
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog, HIGDialog
|
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
|
||||||
from zenmapGUI.higwidgets.higscrollers import HIGScrolledWindow
|
from zenmapGUI.higwidgets.higscrollers import HIGScrolledWindow
|
||||||
from zenmapGUI.higwidgets.higlabels import HIGSectionLabel
|
|
||||||
|
|
||||||
from zenmapGUI.FilterBar import FilterBar
|
from zenmapGUI.FilterBar import FilterBar
|
||||||
from zenmapGUI.ScanHostDetailsPage import ScanHostDetailsPage
|
from zenmapGUI.ScanHostDetailsPage import ScanHostDetailsPage
|
||||||
from zenmapGUI.ScanToolbar import ScanCommandToolbar, ScanToolbar
|
from zenmapGUI.ScanToolbar import ScanCommandToolbar, ScanToolbar
|
||||||
from zenmapGUI.ScanHostsView import ScanHostsView
|
from zenmapGUI.ScanHostsView import ScanHostsView
|
||||||
from zenmapGUI.ScanOpenPortsPage import ScanOpenPortsPage
|
from zenmapGUI.ScanOpenPortsPage import ScanOpenPortsPage
|
||||||
from zenmapGUI.ScanRunDetailsPage import ScanRunDetailsPage
|
|
||||||
from zenmapGUI.ScanNmapOutputPage import ScanNmapOutputPage
|
from zenmapGUI.ScanNmapOutputPage import ScanNmapOutputPage
|
||||||
from zenmapGUI.ScanScanListPage import ScanScanListPage
|
from zenmapGUI.ScanScanListPage import ScanScanListPage
|
||||||
from zenmapGUI.ScansListStore import ScansListStore
|
from zenmapGUI.ScansListStore import ScansListStore
|
||||||
@@ -159,7 +157,7 @@ from zenmapGUI.TopologyPage import TopologyPage
|
|||||||
from zenmapCore.NetworkInventory import NetworkInventory,\
|
from zenmapCore.NetworkInventory import NetworkInventory,\
|
||||||
FilteredNetworkInventory
|
FilteredNetworkInventory
|
||||||
from zenmapCore.NmapCommand import NmapCommand
|
from zenmapCore.NmapCommand import NmapCommand
|
||||||
from zenmapCore.UmitConf import CommandProfile, ProfileNotFound, is_maemo
|
from zenmapCore.UmitConf import CommandProfile, is_maemo
|
||||||
from zenmapCore.NmapParser import NmapParser
|
from zenmapCore.NmapParser import NmapParser
|
||||||
from zenmapCore.Paths import Path, get_extra_executable_search_paths
|
from zenmapCore.Paths import Path, get_extra_executable_search_paths
|
||||||
from zenmapCore.UmitLogging import log
|
from zenmapCore.UmitLogging import log
|
||||||
|
|||||||
@@ -135,7 +135,6 @@ from zenmapGUI.higwidgets.higboxes import HIGHBox, HIGVBox
|
|||||||
|
|
||||||
from zenmapGUI.NmapOutputViewer import NmapOutputViewer
|
from zenmapGUI.NmapOutputViewer import NmapOutputViewer
|
||||||
from zenmapGUI.ScanRunDetailsPage import ScanRunDetailsPage
|
from zenmapGUI.ScanRunDetailsPage import ScanRunDetailsPage
|
||||||
from zenmapGUI.ScansListStore import ScansListStore
|
|
||||||
from zenmapCore.Paths import Path
|
from zenmapCore.Paths import Path
|
||||||
from zenmapCore.UmitLogging import log
|
from zenmapCore.UmitLogging import log
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
|
|||||||
@@ -128,8 +128,7 @@
|
|||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
from zenmapGUI.higwidgets.higboxes import HIGVBox, HIGHBox
|
from zenmapGUI.higwidgets.higboxes import HIGVBox
|
||||||
from zenmapGUI.higwidgets.higtables import HIGTable
|
|
||||||
|
|
||||||
from zenmapCore.UmitLogging import log
|
from zenmapCore.UmitLogging import log
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
|
|||||||
@@ -129,7 +129,6 @@
|
|||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
from zenmapGUI.higwidgets.higboxes import HIGHBox
|
from zenmapGUI.higwidgets.higboxes import HIGHBox
|
||||||
from zenmapGUI.higwidgets.higbuttons import HIGButton
|
|
||||||
from zenmapGUI.higwidgets.higlabels import HIGEntryLabel
|
from zenmapGUI.higwidgets.higlabels import HIGEntryLabel
|
||||||
|
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
|
|||||||
@@ -138,20 +138,13 @@ xml.__path__ = [x for x in xml.__path__ if "_xmlplus" not in x]
|
|||||||
|
|
||||||
import xml.sax
|
import xml.sax
|
||||||
|
|
||||||
from zenmapGUI.higwidgets.higwindows import HIGWindow
|
from zenmapGUI.higwidgets.higboxes import HIGVBox, HIGHBox, hig_box_space_holder
|
||||||
from zenmapGUI.higwidgets.higboxes import HIGVBox, HIGHBox, HIGSpacer,\
|
|
||||||
hig_box_space_holder
|
|
||||||
from zenmapGUI.higwidgets.higlabels import HIGSectionLabel, HIGEntryLabel
|
|
||||||
from zenmapGUI.higwidgets.higscrollers import HIGScrolledWindow
|
from zenmapGUI.higwidgets.higscrollers import HIGScrolledWindow
|
||||||
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.higdialogs import HIGAlertDialog, HIGDialog
|
|
||||||
from zenmapCore.ScriptMetadata import *
|
from zenmapCore.ScriptMetadata import *
|
||||||
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
|
||||||
from zenmapCore.Paths import Path
|
|
||||||
import zenmapCore.NSEDocParser
|
import zenmapCore.NSEDocParser
|
||||||
import zenmapGUI.FileChoosers
|
import zenmapGUI.FileChoosers
|
||||||
from zenmapCore.UmitConf import PathsConfig
|
from zenmapCore.UmitConf import PathsConfig
|
||||||
|
|||||||
@@ -127,29 +127,20 @@
|
|||||||
# ***************************************************************************/
|
# ***************************************************************************/
|
||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
import os.path
|
|
||||||
import re
|
import re
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
from zenmapGUI.higwidgets.higwindows import HIGWindow
|
|
||||||
from zenmapGUI.higwidgets.higboxes import HIGVBox
|
|
||||||
from zenmapGUI.higwidgets.higbuttons import HIGButton, HIGToggleButton
|
from zenmapGUI.higwidgets.higbuttons import HIGButton, HIGToggleButton
|
||||||
from zenmapGUI.higwidgets.higboxes import HIGVBox, HIGHBox, HIGSpacer,\
|
from zenmapGUI.higwidgets.higboxes import HIGHBox
|
||||||
hig_box_space_holder
|
from zenmapGUI.higwidgets.higlabels import HIGSectionLabel, HintWindow
|
||||||
from zenmapGUI.higwidgets.higlabels import HIGSectionLabel, HIGEntryLabel,\
|
|
||||||
HintWindow
|
|
||||||
from zenmapGUI.higwidgets.higtables import HIGTable
|
|
||||||
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
|
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
|
||||||
|
|
||||||
from types import StringTypes
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from zenmapCore.Name import APP_DISPLAY_NAME
|
from zenmapCore.Name import APP_DISPLAY_NAME
|
||||||
import zenmapCore.I18N
|
import zenmapCore.I18N
|
||||||
from zenmapCore.UmitLogging import log
|
|
||||||
from zenmapCore.NmapOptions import split_quoted
|
from zenmapCore.NmapOptions import split_quoted
|
||||||
from zenmapCore.SearchResult import SearchDir, SearchDB, SearchDummy
|
from zenmapCore.SearchResult import SearchDir, SearchDB, SearchDummy
|
||||||
from zenmapCore.UmitConf import is_maemo
|
|
||||||
from zenmapCore.UmitConf import SearchConfig
|
from zenmapCore.UmitConf import SearchConfig
|
||||||
|
|
||||||
from zenmapGUI.FileChoosers import DirectoryChooserDialog
|
from zenmapGUI.FileChoosers import DirectoryChooserDialog
|
||||||
|
|||||||
@@ -129,17 +129,9 @@
|
|||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
from zenmapGUI.ScanToolbar import *
|
from zenmapGUI.ScanToolbar import *
|
||||||
from zenmapCore.NetworkInventory import NetworkInventory
|
|
||||||
from zenmapCore.UmitConf import CommandProfile, ProfileNotFound
|
|
||||||
from zenmapCore.NmapCommand import NmapCommand
|
|
||||||
from zenmapCore.NmapParser import NmapParser
|
|
||||||
|
|
||||||
from zenmapGUI.higwidgets.higboxes import HIGVBox, HIGHBox
|
from zenmapGUI.higwidgets.higboxes import HIGVBox
|
||||||
from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
|
|
||||||
from zenmapGUI.higwidgets.higbuttons import HIGButton, HIGToggleButton
|
|
||||||
from zenmapGUI.higwidgets.higwindows import HIGWindow
|
|
||||||
|
|
||||||
from radialnet.core.XMLHandler import XMLReader
|
|
||||||
from radialnet.gui.RadialNet import *
|
from radialnet.gui.RadialNet import *
|
||||||
from radialnet.gui.ControlWidget import *
|
from radialnet.gui.ControlWidget import *
|
||||||
from radialnet.gui.Toolbar import Toolbar
|
from radialnet.gui.Toolbar import Toolbar
|
||||||
|
|||||||
@@ -129,7 +129,6 @@
|
|||||||
import gtk
|
import gtk
|
||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
from higspinner import HIGSpinner
|
|
||||||
from higboxes import HIGHBox
|
from higboxes import HIGHBox
|
||||||
from higbuttons import HIGButton
|
from higbuttons import HIGButton
|
||||||
|
|
||||||
|
|||||||
@@ -134,7 +134,6 @@ higwidgets/higspinner.py
|
|||||||
|
|
||||||
__all__ = ['HIGSpinner']
|
__all__ = ['HIGSpinner']
|
||||||
|
|
||||||
import os
|
|
||||||
import gtk
|
import gtk
|
||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user