1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 06:59:01 +00:00

Suppress unused import LGTM.com alert for I18N

I18N installs the `_` function into the builtin namespace, so it looks
like it's unused when it's not. #1834
This commit is contained in:
dmiller
2019-12-30 00:53:25 +00:00
parent 866dc375e4
commit 085cd7fd34
28 changed files with 28 additions and 28 deletions

View File

@@ -130,7 +130,7 @@ import pango
import math
import cairo
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
from radialnet.bestwidgets.windows import *
from radialnet.bestwidgets.boxes import *

View File

@@ -133,7 +133,7 @@ from radialnet.bestwidgets.boxes import *
from radialnet.bestwidgets.expanders import BWExpander
from radialnet.bestwidgets.labels import *
from radialnet.bestwidgets.textview import *
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
PORTS_HEADER = [

View File

@@ -137,7 +137,7 @@ import os
import tempfile
import unittest
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
try:
import subprocess

View File

@@ -147,7 +147,7 @@ from xml.sax.handler import ContentHandler, EntityResolver
from xml.sax.saxutils import XMLGenerator
from xml.sax.xmlreader import AttributesImpl as Attributes
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
from zenmapCore.NmapOptions import NmapOptions, join_quoted
from zenmapCore.StringPool import unique

View File

@@ -135,7 +135,7 @@ from ConfigParser import Error as ConfigParser_Error
from zenmapCore.Paths import Path
from zenmapCore.UmitLogging import log
from zenmapCore.UmitConfigParser import UmitConfigParser
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
# This is the global configuration parser object that represents the contents
# of zenmap.conf. It should be initialized once by the application. Most

View File

@@ -129,7 +129,7 @@
from optparse import OptionParser
from zenmapCore.Name import NMAP_DISPLAY_NAME
from zenmapCore.Version import VERSION
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
from zenmapCore.BasePaths import base_paths
from zenmapCore.DelayedObject import DelayedObject

View File

@@ -141,7 +141,7 @@ from zenmapGUI.higwidgets.higtextviewers import HIGTextView
from zenmapCore.Name import APP_DISPLAY_NAME, APP_WEB_SITE, APP_COPYRIGHT, \
NMAP_DISPLAY_NAME, NMAP_WEB_SITE, UMIT_DISPLAY_NAME, UMIT_WEB_SITE
from zenmapCore.Version import VERSION
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
# Prevent loading PyXML

View File

@@ -163,7 +163,7 @@ from zenmapCore.UmitConf import is_maemo, config_parser, SearchConfig
from zenmapCore.UmitLogging import log
from zenmapCore.UmitOptionParser import option_parser
from zenmapCore.Name import APP_NAME, APP_DISPLAY_NAME, NMAP_DISPLAY_NAME
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
from zenmapCore.Paths import Path, create_user_config_dir
from zenmapCore.Name import APP_DISPLAY_NAME

View File

@@ -131,7 +131,7 @@ import gtk
from zenmapGUI.higwidgets.higboxes import HIGVBox
from zenmapCore.Name import APP_DISPLAY_NAME, NMAP_DISPLAY_NAME, NMAP_WEB_SITE
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
# Prevent loading PyXML

View File

@@ -135,7 +135,7 @@ from zenmapGUI.higwidgets.higboxes import HIGHBox
from zenmapCore.Name import APP_DISPLAY_NAME
from zenmapCore.Version import VERSION
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
# Prevent loading PyXML

View File

@@ -147,7 +147,7 @@ from zenmapGUI.higwidgets.higbuttons import HIGButton
from zenmapCore.NmapParser import NmapParser
from zenmapCore.UmitLogging import log
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
import zenmapCore.Diff
from zenmapGUI.FileChoosers import ResultsFileSingleChooserDialog

View File

@@ -130,7 +130,7 @@ import os.path
import sys
import gtk
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
RESPONSE_OPEN_DIRECTORY = 1

View File

@@ -157,7 +157,7 @@ from zenmapCore.BasePaths import fs_enc
from zenmapCore.Paths import Path
from zenmapCore.RecentScans import recent_scans
from zenmapCore.UmitLogging import log
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
import zenmapGUI.Print
from zenmapCore.UmitConf import SearchConfig, is_maemo, WindowConfig, config_parser

View File

@@ -130,7 +130,7 @@ import gtk
import gtk.gdk
import pango
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
from zenmapCore.UmitConf import NmapOutputHighlight
from zenmapGUI.higwidgets.higdialogs import HIGDialog

View File

@@ -132,7 +132,7 @@ import gtk.gdk
import pango
import re
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
from zenmapCore.UmitLogging import log
from zenmapCore.UmitConf import NmapOutputHighlight

View File

@@ -143,7 +143,7 @@ from zenmapGUI.FileChoosers import AllFilesFileChooserDialog
from zenmapGUI.ProfileHelp import ProfileHelp
from zenmapCore.NmapOptions import NmapOptions, split_quoted, join_quoted
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
from zenmapGUI.ScriptInterface import *

View File

@@ -129,7 +129,7 @@
import gtk
from zenmapCore.UmitConf import CommandProfile
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
class ProfileCombo(gtk.ComboBoxEntry, object):

View File

@@ -141,7 +141,7 @@ from zenmapGUI.OptionBuilder import *
from zenmapCore.Paths import Path
from zenmapCore.UmitConf import CommandProfile
from zenmapCore.UmitLogging import log
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
from zenmapCore.NmapOptions import NmapOptions

View File

@@ -135,7 +135,7 @@ from zenmapGUI.higwidgets.higlabels import HIGEntryLabel
from zenmapGUI.higwidgets.higtables import HIGTable
from zenmapGUI.Icons import get_os_logo, get_vulnerability_logo
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
na = _('Not available')

View File

@@ -130,7 +130,7 @@ import gtk
from zenmapGUI.higwidgets.higboxes import HIGVBox
from zenmapGUI.Icons import get_os_icon
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
def treemodel_get_addrs_for_sort(model, iter):

View File

@@ -162,7 +162,7 @@ from zenmapCore.NmapParser import NmapParser
from zenmapCore.Paths import Path, get_extra_executable_search_paths
from zenmapCore.UmitLogging import log
from zenmapCore.NmapOptions import NmapOptions, split_quoted, join_quoted
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
# How often the live output view refreshes, in milliseconds.
NMAP_OUTPUT_REFRESH_INTERVAL = 1000

View File

@@ -137,7 +137,7 @@ from zenmapGUI.NmapOutputViewer import NmapOutputViewer
from zenmapGUI.ScanRunDetailsPage import ScanRunDetailsPage
from zenmapCore.Paths import Path
from zenmapCore.UmitLogging import log
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
def scan_entry_data_func(widget, cell_renderer, model, iter):

View File

@@ -131,7 +131,7 @@ import gtk
from zenmapGUI.higwidgets.higboxes import HIGVBox
from zenmapCore.UmitLogging import log
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
def findout_service_icon(port_info):

View File

@@ -132,7 +132,7 @@ from zenmapGUI.higwidgets.higboxes import HIGVBox, HIGHBox,\
from zenmapGUI.higwidgets.higtables import HIGTable
from zenmapGUI.higwidgets.higlabels import HIGEntryLabel
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
class ScanRunDetailsPage(HIGVBox):

View File

@@ -132,7 +132,7 @@ import pango
from zenmapGUI.higwidgets.higboxes import HIGHBox, HIGVBox
from zenmapGUI.higwidgets.higbuttons import HIGButton
from zenmapGUI.higwidgets.higscrollers import HIGScrolledWindow
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
def status_data_func(widget, cell_renderer, model, iter):

View File

@@ -131,7 +131,7 @@ import gtk
from zenmapGUI.higwidgets.higboxes import HIGHBox
from zenmapGUI.higwidgets.higlabels import HIGEntryLabel
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
from zenmapGUI.ProfileCombo import ProfileCombo
from zenmapGUI.TargetCombo import TargetCombo

View File

@@ -138,7 +138,7 @@ from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
import datetime
from zenmapCore.Name import APP_DISPLAY_NAME
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
from zenmapCore.NmapOptions import split_quoted
from zenmapCore.SearchResult import SearchDir, SearchDB, SearchDummy
from zenmapCore.UmitConf import SearchConfig

View File

@@ -130,7 +130,7 @@ import gtk
from zenmapGUI.SearchGUI import SearchGUI
import zenmapCore.I18N
import zenmapCore.I18N # lgtm[py/unused-import]
from zenmapCore.UmitConf import is_maemo
from zenmapGUI.higwidgets.higboxes import HIGVBox