diff --git a/py3status/modules/check_tcp.py b/py3status/modules/check_tcp.py index 3b76f68408..59a71c21dc 100644 --- a/py3status/modules/check_tcp.py +++ b/py3status/modules/check_tcp.py @@ -24,6 +24,7 @@ down {'color': '#FF0000', 'full_text': u'localhost:22 DOWN'} """ + import socket diff --git a/py3status/modules/cmus.py b/py3status/modules/cmus.py index d1bd64f0bf..11e3229a84 100644 --- a/py3status/modules/cmus.py +++ b/py3status/modules/cmus.py @@ -83,7 +83,6 @@ {'color': '#FF0000', 'full_text': '.. cmus: waiting for user input'} """ - STRING_NOT_INSTALLED = "not installed" diff --git a/py3status/modules/graphite.py b/py3status/modules/graphite.py index 0a721b4222..ac70c817fd 100644 --- a/py3status/modules/graphite.py +++ b/py3status/modules/graphite.py @@ -69,6 +69,7 @@ SAMPLE OUTPUT {'full_text': '412 req/s'} """ + from syslog import LOG_INFO, syslog from requests import get diff --git a/py3status/modules/imap.py b/py3status/modules/imap.py index aac3616267..504e6193e1 100644 --- a/py3status/modules/imap.py +++ b/py3status/modules/imap.py @@ -61,6 +61,7 @@ SAMPLE OUTPUT {'full_text': 'Mail: 36', 'color': '#00FF00'} """ + import imaplib from pathlib import Path from socket import error as socket_error diff --git a/py3status/modules/khal_calendar.py b/py3status/modules/khal_calendar.py index be959bfea6..5ea3d63ec1 100644 --- a/py3status/modules/khal_calendar.py +++ b/py3status/modules/khal_calendar.py @@ -22,6 +22,7 @@ {'full_text': '13:00 Eat lunch'} """ + from datetime import datetime from re import compile as re_compile diff --git a/py3status/modules/moc.py b/py3status/modules/moc.py index 2dc829130a..585e962be1 100644 --- a/py3status/modules/moc.py +++ b/py3status/modules/moc.py @@ -72,7 +72,6 @@ {'color': '#FF0000', 'full_text': '[] moc'} """ - STRING_NOT_INSTALLED = "not installed" diff --git a/py3status/modules/mpris.py b/py3status/modules/mpris.py index 2061b97fdc..bd58555a47 100644 --- a/py3status/modules/mpris.py +++ b/py3status/modules/mpris.py @@ -101,6 +101,7 @@ {'color': '#00FF00', 'full_text': u'Happy Mondays - Fat Lady Wrestlers'} ] """ + import re import sys from datetime import timedelta diff --git a/py3status/modules/net_iplist.py b/py3status/modules/net_iplist.py index c267ddc98d..b0a657a942 100644 --- a/py3status/modules/net_iplist.py +++ b/py3status/modules/net_iplist.py @@ -55,7 +55,6 @@ 'full_text': u'Network: wls1: 192.168.1.3 fe80::f861:44bd:694a:b99c'} """ - import re from fnmatch import fnmatch diff --git a/py3status/modules/playerctl.py b/py3status/modules/playerctl.py index e902e94449..605317a884 100644 --- a/py3status/modules/playerctl.py +++ b/py3status/modules/playerctl.py @@ -65,6 +65,7 @@ Stopped {'color': '#FF0000', 'full_text': '.. This Song Has No Title - Elton John'} """ + import time from fnmatch import fnmatch from threading import Thread diff --git a/py3status/modules/rate_counter.py b/py3status/modules/rate_counter.py index 66fe0b081a..00471d5bda 100644 --- a/py3status/modules/rate_counter.py +++ b/py3status/modules/rate_counter.py @@ -37,7 +37,6 @@ {'color': '#FF0000', 'full_text': u'Time: 0 day 0:00 Cost: 0.13$'} """ - import time from pathlib import Path diff --git a/py3status/modules/vnstat.py b/py3status/modules/vnstat.py index b9d8029e57..56913267c9 100644 --- a/py3status/modules/vnstat.py +++ b/py3status/modules/vnstat.py @@ -45,7 +45,6 @@ {'full_text': '826.4 mb'} """ - STRING_NOT_INSTALLED = "not installed" STRING_INVALID_TYPE = "invalid statistics_type" diff --git a/py3status/modules/xsel.py b/py3status/modules/xsel.py index 2ccc83b99e..3f4de928ca 100644 --- a/py3status/modules/xsel.py +++ b/py3status/modules/xsel.py @@ -33,7 +33,6 @@ {'full_text': 'selected text'} """ - import time from pathlib import Path diff --git a/py3status/screenshots.py b/py3status/screenshots.py index 26f010933f..cd69fdab05 100644 --- a/py3status/screenshots.py +++ b/py3status/screenshots.py @@ -10,7 +10,6 @@ PIL may work if installed but is not supported. """ - import ast import re from hashlib import md5