mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Updated for tomli import
This commit is contained in:
parent
400a92f7c8
commit
2c693bceb4
4 changed files with 16 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue