Updated for tomli import

This commit is contained in:
Dimitris Zlatanidis 2024-03-31 17:40:07 +03:00
parent 400a92f7c8
commit 2c693bceb4
4 changed files with 16 additions and 3 deletions

View file

@ -3,6 +3,7 @@
### 5.0.2 - 30/03/2024
- Updated:
* Updated for coding style
* Updated tomli import for -current version
- Bugfixes:
* Check for custom upgrade packages (Thanks to Marav)

View file

@ -1,7 +1,11 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import tomli
try:
import tomli
except ModuleNotFoundError:
import tomllib as tomli
from pathlib import Path
from slpkg.configs import Configs

View file

@ -1,7 +1,11 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import tomli
try:
import tomli
except ModuleNotFoundError:
import tomllib as tomli
import platform
from typing import Any
from pathlib import Path

View file

@ -2,7 +2,11 @@
# -*- coding: utf-8 -*-
import tomli
try:
import tomli
except ModuleNotFoundError:
import tomllib as tomli
from pathlib import Path
from dataclasses import dataclass