Skip to content

Commit

Permalink
Merge "Python 2.6 doesn't have dictionary comprehension"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jun 10, 2015
2 parents 5c8880f + 0f0de2b commit f696899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api-lib/vnc_api.py
Expand Up @@ -34,8 +34,8 @@ def str_to_class(class_name):

def compare_refs(old_refs, new_refs):
# compare refs in an object
old_ref_dict = {':'.join(ref['to']): ref['attr'] for ref in old_refs}
new_ref_dict = {':'.join(ref['to']): ref['attr'] for ref in new_refs}
old_ref_dict = dict((':'.join(ref['to']), ref['attr']) for ref in old_refs)
new_ref_dict = dict((':'.join(ref['to']), ref['attr']) for ref in new_refs)
return old_ref_dict == new_ref_dict
# end compare_refs

Expand Down

0 comments on commit f696899

Please sign in to comment.