mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-29 10:34:42 +00:00
Add missing imports after using fileutils.has_module.
This commit is contained in:
parent
d956e62308
commit
b71d8444a9
1 changed files with 2 additions and 0 deletions
|
|
@ -166,6 +166,7 @@ def has_colors (fp):
|
|||
# an old system.
|
||||
return has_wconio
|
||||
elif has_curses:
|
||||
import curses
|
||||
try:
|
||||
curses.setupterm()
|
||||
if curses.tigetnum("colors") >= 8:
|
||||
|
|
@ -196,6 +197,7 @@ def _write_color_ansi (fp, text, color):
|
|||
|
||||
|
||||
if os.name == 'nt' and has_wconio:
|
||||
import WConio
|
||||
WConioColor = {
|
||||
None: WConio.LIGHTGREY,
|
||||
default: WConio.LIGHTGREY,
|
||||
|
|
|
|||
Loading…
Reference in a new issue