Skip to content

Commit

Permalink
Remove unused stdlib imports
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Sep 27, 2024
1 parent 5d6feef commit ed792fe
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion python/nav/arnold.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import logging
import socket
from datetime import datetime, timedelta
from subprocess import Popen, PIPE
from collections import namedtuple
from smtplib import SMTPException
from typing import Callable
Expand Down
1 change: 0 additions & 1 deletion python/nav/bin/emailreports.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import argparse
import logging
import os

from nav.bootstrap import bootstrap_django

Expand Down
1 change: 0 additions & 1 deletion python/nav/bin/macwatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
addresses, if found.
"""

from os.path import join
from datetime import datetime

import time
Expand Down
1 change: 0 additions & 1 deletion python/nav/bin/t1000.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"""

import os
import sys
import logging
import getpass
Expand Down
1 change: 0 additions & 1 deletion python/nav/django/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# along with NAV. If not, see <http://www.gnu.org/licenses/>.
#

import sys
import traceback

from django.template import loader
Expand Down
1 change: 0 additions & 1 deletion python/nav/mibs/entity_mib.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import logging
from datetime import datetime
import struct
import sys

from twisted.internet import defer

Expand Down
1 change: 0 additions & 1 deletion python/nav/models/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import base64
import datetime as dt
import pickle
import warnings
from functools import partial
from itertools import count, groupby
import logging
Expand Down
2 changes: 0 additions & 2 deletions python/nav/statemon/checker/FtpChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#
"""FTP Service Checker"""
import contextlib
import socket
import sys
from ftplib import FTP

from nav.statemon.abstractchecker import AbstractChecker
Expand Down
2 changes: 0 additions & 2 deletions python/nav/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import stat
import socket
import datetime
import uuid
import hashlib
from functools import wraps
from importlib.resources import as_file, files as resource_files
from itertools import chain, tee, groupby, islice
Expand Down
1 change: 0 additions & 1 deletion python/nav/web/auth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
Contains web authentication and login functionality for NAV.
"""

from datetime import datetime
import logging

from urllib import parse
Expand Down
2 changes: 1 addition & 1 deletion python/nav/web/maintenance/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import logging

import time
from datetime import datetime, date
from datetime import datetime

from django.db import transaction, connection
from django.db.models import Count, Q
Expand Down

0 comments on commit ed792fe

Please sign in to comment.