don't handle py2 vs. py3 imports

This commit is contained in:
Jakub Trllo 2024-07-16 17:00:30 +02:00
parent 6e7d6201c9
commit e731dd7064

View file

@ -3,26 +3,10 @@
import os import os
import json import json
import platform import platform
import configparser
from datetime import datetime from datetime import datetime
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from functools import lru_cache
# disable lru cache in Python 2
try:
from functools import lru_cache
except ImportError:
def lru_cache(maxsize):
def max_size(func):
def wrapper(*args, **kwargs):
value = func(*args, **kwargs)
return value
return wrapper
return max_size
# ConfigParser was renamed in python3 to configparser
try:
import configparser
except ImportError:
import ConfigParser as configparser
import appdirs import appdirs
import ayon_api import ayon_api