git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0f69109
)
- fix canonicalize() call
author
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 9 Nov 2006 20:24:28 +0000
(20:24 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 9 Nov 2006 20:24:28 +0000
(20:24 +0000)
plcapi.py
patch
|
blob
|
history
diff --git
a/plcapi.py
b/plcapi.py
index
fd04b6a
..
11d37db
100644
(file)
--- a/
plcapi.py
+++ b/
plcapi.py
@@
-44,12
+44,12
@@
class PLCAPI:
if isinstance(arg, list) or isinstance(arg, tuple):
# The old implementation did not recursively handle
# lists of lists. But neither did the old API itself.
if isinstance(arg, list) or isinstance(arg, tuple):
# The old implementation did not recursively handle
# lists of lists. But neither did the old API itself.
- values +=
self.
canonicalize(arg)
+ values += canonicalize(arg)
elif isinstance(arg, dict):
# Yes, the comments in the old implementation are
# misleading. Keys of dicts are not included in the
# hash.
elif isinstance(arg, dict):
# Yes, the comments in the old implementation are
# misleading. Keys of dicts are not included in the
# hash.
- values +=
self.
canonicalize(arg.values())
+ values += canonicalize(arg.values())
else:
# We use unicode() instead of str().
values.append(unicode(arg))
else:
# We use unicode() instead of str().
values.append(unicode(arg))