X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=blobdiff_plain;f=plcapi.py;h=a03e9e0cafda730a96001181d8ede841ed12e78d;hp=acccda0e36d19afb3e8b024bdb34602f43808c13;hb=48a73b18fd7daed13c645c1adeddb57b560e7a2d;hpb=7b8fc390afd0349706c45c3ae970770cdf9dceae diff --git a/plcapi.py b/plcapi.py index acccda0..a03e9e0 100644 --- a/plcapi.py +++ b/plcapi.py @@ -28,7 +28,7 @@ class PLCAPI: if isinstance(auth, (tuple, list)): (self.node_id, self.key) = auth self.session = None - elif isinstance(auth, (str, unicode)): + elif isinstance(auth, str): self.node_id = self.key = None self.session = auth else: @@ -85,10 +85,10 @@ class PLCAPI: # Yes, the comments in the old implementation are # misleading. Keys of dicts are not included in the # hash. - values += canonicalize(arg.values()) + values += canonicalize(list(arg.values())) else: # We use unicode() instead of str(). - values.append(unicode(arg)) + values.append(str(arg)) return values