parsers/graphviz.py | raw changeset files shortlog |
1.1 --- a/parsers/graphviz.py Thu Mar 22 23:11:54 2012 +0100 1.2 +++ b/parsers/graphviz.py Thu Apr 19 00:48:46 2012 +0200 1.3 @@ -303,7 +303,7 @@ 1.4 1.5 "Return a (width, height) tuple using the 'attrs' dictionary." 1.6 1.7 - if attrs and attrs.has_key("width") and attrs.has_key("height"): 1.8 + if attrs and attrs.get("width") and attrs.get("height"): 1.9 return attrs["width"], attrs["height"] 1.10 else: 1.11 return None