Skip to content

Commit ff7b32d

Browse files
committed
Allow for dir/fileattributes to be empty list.
1 parent eb41375 commit ff7b32d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[metadata]
99
name = "idpyoidc"
10-
version = "1.0.2"
10+
version = "1.0.3"
1111
author = "Roland Hedberg"
1212
author_email = "[email protected]"
1313
description = "Everything OAuth2 and OIDC"

src/idpyoidc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Roland Hedberg"
2-
__version__ = "1.0.2"
2+
__version__ = "1.0.3"
33

44
import os
55
from typing import Dict

src/idpyoidc/configure.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ def __init__(self,
9494
port: Optional[int] = 0,
9595
):
9696
dict.__init__(self)
97-
self._file_attributes = file_attributes or DEFAULT_FILE_ATTRIBUTE_NAMES
98-
self._dir_attributes = dir_attributes or DEFAULT_DIR_ATTRIBUTE_NAMES
97+
if file_attributes is None:
98+
self.file_attributes = DEFAULT_FILE_ATTRIBUTE_NAMES
99+
if dir_attributes is None:
100+
self._dir_attributes = DEFAULT_DIR_ATTRIBUTE_NAMES
99101

100102
if base_path:
101103
# this adds a base path to all paths in the configuration

0 commit comments

Comments
 (0)