Browse Source

interface names: need to use items(), instead of values()

toddw 11 years ago
parent
commit
b8de1f9d79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      xpcom/components.py

+ 1 - 1
xpcom/components.py

@@ -156,7 +156,7 @@ class _Interfaces(_ComponentCollection):
     def _build_dict(self):
         ret = {}
         name_to_iid_dict = interfaceInfoManager.GetScriptableInterfaces()
-        for name, iid in name_to_iid_dict.values():
+        for name, iid in name_to_iid_dict.items():
             ret[name] = _Interface(name, iid)
         return ret