diff options
author | Martin Nagy <mnagy@redhat.com> | 2010-04-15 11:59:16 +0200 |
---|---|---|
committer | Martin Nagy <mnagy@redhat.com> | 2010-04-19 14:21:08 +0200 |
commit | 5fee936b1a994beaefe0fbce539dce74f4c66333 (patch) | |
tree | a2f85a7d0f4cca81b3c767b4b54076693548bfc9 /ipapython | |
parent | b9fc5a330468f0927c477f136ae2e4e2ea58c5d6 (diff) | |
download | freeipa-5fee936b1a994beaefe0fbce539dce74f4c66333.tar.gz freeipa-5fee936b1a994beaefe0fbce539dce74f4c66333.tar.xz freeipa-5fee936b1a994beaefe0fbce539dce74f4c66333.zip |
Accept unicode for sysrestore
Diffstat (limited to 'ipapython')
-rw-r--r-- | ipapython/sysrestore.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipapython/sysrestore.py b/ipapython/sysrestore.py index 78c9b628..ddc3ee05 100644 --- a/ipapython/sysrestore.py +++ b/ipapython/sysrestore.py @@ -282,8 +282,8 @@ class StateFile: by the string @key and with the value @value. @value may be a string or boolean. """ - if not (isinstance(value, str) or isinstance(value, bool)): - raise ValueError("Only strings or booleans supported") + if not isinstance(value, (str, bool, unicode)): + raise ValueError("Only strings, booleans or unicode strings are supported") if not self.modules.has_key(module): self.modules[module] = {} |