Skip to content

Commit

Permalink
Directly import lru_cache from functools
Browse files Browse the repository at this point in the history
This has been superfluous since dropping Django 2.2
  • Loading branch information
johannaengland committed May 8, 2024
1 parent fe64618 commit 5f65059
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion python/nav/alertengine/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
import gc
import logging
from datetime import datetime, timedelta
from functools import lru_cache

from django.db import transaction, reset_queries

from nav.compatibility import lru_cache
from nav.models.profiles import (
Account,
AccountAlertQueue,
Expand Down
9 changes: 0 additions & 9 deletions python/nav/compatibility.py

This file was deleted.

2 changes: 1 addition & 1 deletion python/nav/metrics/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#
"""Functions for reverse-mapping metric names to NAV objects"""

from functools import lru_cache
import re

from nav.compatibility import lru_cache
from nav.models.manage import Netbox, Interface, Prefix, Sensor


Expand Down
2 changes: 1 addition & 1 deletion python/nav/web/ipdevinfo/host_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
#
"""Provides a function for getting host information"""

from functools import lru_cache

import IPy
from nav import asyncdns
from nav.compatibility import lru_cache

from nav.util import is_valid_ip

Expand Down

0 comments on commit 5f65059

Please sign in to comment.