mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
bullseye->bookworm: explicitly import _strptime at the beginning to try to prevent "No module named '_strptime'" during migration
This commit is contained in:
parent
c861ef2ae6
commit
2d3dddc51a
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,9 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
|
# Explicitly import _strptime to prevent an issue that may arise later because of python3.9 being replaced by 3.11 in the middle of the upgrade etc
|
||||||
|
import _strptime # noqa: F401
|
||||||
|
|
||||||
from moulinette import Moulinette, m18n
|
from moulinette import Moulinette, m18n
|
||||||
from moulinette.utils.process import call_async_output
|
from moulinette.utils.process import call_async_output
|
||||||
from yunohost.utils.error import YunohostError
|
from yunohost.utils.error import YunohostError
|
||||||
|
|
Loading…
Add table
Reference in a new issue