Merge pull request #822 from linkchecker/pylint-errors

Fix pylint errors (false positives)
This commit is contained in:
Marius Gedminas 2024-05-21 10:11:26 +03:00 committed by GitHub
commit 6bfea133bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -159,6 +159,10 @@ if os.name == 'nt':
Cyan: colorama.CYAN,
White: colorama.GREY,
}
else:
WinColor = {
None: None,
}
# pc speaker beep escape code
Beep = "\007"

View file

@ -69,6 +69,7 @@ def get_geoip_dat():
# try importing both the C-library GeoIP and the pure-python pygeoip
geoip_dat = get_geoip_dat()
geoip = None
geoip_error = None
if geoip_dat:
try:
import GeoIP