Skip to content

Commit

Permalink
make tox happy
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Dec 14, 2024
1 parent 1e318c8 commit 9787f87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radicale/storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Copyright © 2014 Jean-Marc Martins
# Copyright © 2012-2017 Guillaume Ayoub
# Copyright © 2017-2022 Unrud <[email protected]>
# Copyright © 2024-2024 Peter Bieringer <[email protected]>
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -32,10 +33,10 @@
import vobject

from radicale import config
from radicale.log import logger
from radicale import item as radicale_item
from radicale import types, utils
from radicale.item import filter as radicale_filter
from radicale.log import logger

INTERNAL_TYPES: Sequence[str] = ("multifilesystem", "multifilesystem_nolock",)

Expand Down
3 changes: 3 additions & 0 deletions radicale/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

RADICALE_MODULES: Sequence[str] = ("radicale", "vobject", "passlib", "defusedxml")


def load_plugin(internal_types: Sequence[str], module_name: str,
class_name: str, base_class: Type[_T_co],
configuration: "config.Configuration") -> _T_co:
Expand All @@ -51,12 +52,14 @@ def load_plugin(internal_types: Sequence[str], module_name: str,
def package_version(name):
return metadata.version(name)


def packages_version():
versions = []
for pkg in RADICALE_MODULES:
versions.append("%s=%s" % (pkg, package_version(pkg)))
return " ".join(versions)


def ssl_context_options_by_protocol(protocol: str, ssl_context_options):
logger.debug("SSL protocol string: '%s' and current SSL context options: '0x%x'", protocol, ssl_context_options)
# disable any protocol by default
Expand Down

0 comments on commit 9787f87

Please sign in to comment.