From 1340875165150144aba07f89df9e39b5ecb43832 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Thu, 15 Apr 2010 11:59:16 +0200 Subject: Accept unicode for sysrestore --- ipapython/sysrestore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipapython/sysrestore.py') diff --git a/ipapython/sysrestore.py b/ipapython/sysrestore.py index 78c9b6283..ddc3ee051 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] = {} -- cgit