Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #58 from IdentityPython/develop
Browse files Browse the repository at this point in the history
Allow attributes in Configure instances to be set to none value before assigned a value
  • Loading branch information
rohe authored Feb 22, 2022
2 parents 00bfde9 + 24fcf93 commit 98a100b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ def run_tests(self):
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules"],
install_requires=[
"cryptojwt==1.6.1",
Expand Down
2 changes: 1 addition & 1 deletion src/oidcmsg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = "Roland Hedberg"
__version__ = "1.5.4"
__version__ = "1.6.0"

import os
from typing import Dict
Expand Down
4 changes: 2 additions & 2 deletions src/oidcmsg/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ def __getattr__(self, item, default=None):
return default

def __setattr__(self, key, value):
if key in self:
if key in self and self.key:
raise KeyError('{} has already been set'.format(key))
super(Base, self).__setitem__(key, value)

def __setitem__(self, key, value):
if key in self:
if key in self and self.key:
raise KeyError('{} has already been set'.format(key))
super(Base, self).__setitem__(key, value)

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{36,37,38},docs,quality
envlist = py{37,38,39,310},docs,quality

[testenv]
passenv = CI TRAVIS TRAVIS_*
Expand Down

0 comments on commit 98a100b

Please sign in to comment.