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
cast instead of rebuilding dict when returning lists of dicts
[plcapi.git]
/
PLC
/
Methods
/
GetSites.py
diff --git
a/PLC/Methods/GetSites.py
b/PLC/Methods/GetSites.py
index
50d5e84
..
cb9847a
100644
(file)
--- a/
PLC/Methods/GetSites.py
+++ b/
PLC/Methods/GetSites.py
@@
-40,6
+40,6
@@
class GetSites(Method):
sites = Sites(self.api, site_id_or_login_base_list)
# turn each site into a real dict.
- sites = [dict(site
.items()
) for site in sites.values()]
+ sites = [dict(site) for site in sites.values()]
return sites