Skip to content

Commit

Permalink
refactor: Use specific lru_cache imports over entire module's
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Aug 2, 2022
1 parent 24b9af6 commit 78742b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bench/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# imports - standard imports
import functools
from functools import lru_cache
import json
import logging
import os
Expand Down Expand Up @@ -149,7 +149,7 @@ def get_ssh_url(self):
return f"git@{self.remote_server}:{self.org}/{self.repo}.git"


@functools.lru_cache(maxsize=None)
@lru_cache(maxsize=None)
class App(AppMeta):
def __init__(
self,
Expand Down
4 changes: 2 additions & 2 deletions bench/bench.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# imports - standard imports
import subprocess
import functools
from functools import lru_cache
import os
import shutil
import json
Expand Down Expand Up @@ -54,7 +54,7 @@ def validate_app_uninstall(self, app):
validate_app_installed_on_sites(app, bench_path=self.name)


@functools.lru_cache(maxsize=None)
@lru_cache(maxsize=None)
class Bench(Base, Validator):
def __init__(self, path):
self.name = path
Expand Down

0 comments on commit 78742b9

Please sign in to comment.