mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-18 20:46:49 +01:00
Accounts for Python 3.8 backported zoneinfo
This commit is contained in:
parent
c3b5b47b22
commit
7432ef9e19
1 changed files with 5 additions and 1 deletions
|
|
@ -1,9 +1,13 @@
|
||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
import zoneinfo
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
|
try:
|
||||||
|
import zoneinfo
|
||||||
|
except ImportError:
|
||||||
|
import backports.zoneinfo as zoneinfo
|
||||||
|
|
||||||
from django.test import override_settings
|
from django.test import override_settings
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue