[Python experimental] Add __setattr__ function to ensure signing_info.host is the same as configuration.host when the user assigns signing info (#6033)

* Add __setattr__ function to ensure signing_info.host is the same as configuration.host when the user assigns signing info

* Add __setattr__ function to ensure signing_info.host is the same as configuration.host when the user assigns signing info
This commit is contained in:
Sebastien Rosset
2020-04-23 23:16:31 -07:00
committed by GitHub
parent 1e01c380e8
commit 6ad5e5fb45
7 changed files with 31 additions and 0 deletions

View File

@@ -199,6 +199,9 @@ class Configuration(object):
result.debug = self.debug
return result
def __setattr__(self, name, value):
object.__setattr__(self, name, value)
@classmethod
def set_default(cls, default):
"""Set default instance of configuration.