mirror of
https://github.com/chatmail/relay.git
synced 2026-05-16 03:24:48 +00:00
use old crypt lib in python < 3.11 (#483)
This commit is contained in:
@@ -3,7 +3,10 @@ import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
import crypt_r
|
||||
try:
|
||||
import crypt_r
|
||||
except ImportError:
|
||||
import crypt as crypt_r
|
||||
|
||||
from .config import Config, read_config
|
||||
from .dictproxy import DictProxy
|
||||
|
||||
Reference in New Issue
Block a user