git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
using 'is' rather than '==' is wrong
[plcapi.git]
/
PLC
/
Methods
/
AdmGetPersonRoles.py
diff --git
a/PLC/Methods/AdmGetPersonRoles.py
b/PLC/Methods/AdmGetPersonRoles.py
index
2a862aa
..
024b93c
100644
(file)
--- a/
PLC/Methods/AdmGetPersonRoles.py
+++ b/
PLC/Methods/AdmGetPersonRoles.py
@@
-39,7
+39,7
@@
class AdmGetPersonRoles(Method):
if not persons:
raise PLCInvalidArgument, "No such account"
- person = persons
.values()
[0]
+ person = persons[0]
# Authenticated function
assert self.caller is not None