Browse Source

Merge pull request #59 from signed0/patch-1

Use hasattr instead of dir
pull/63/merge
Mounier Florian 11 years ago
parent
commit
4b4fa9d7b3
  1. 2
      pygal/graph/base.py

2
pygal/graph/base.py

@ -70,7 +70,7 @@ class BaseGraph(object):
def __getattr__(self, attr):
"""Search in config, then in self"""
if attr in dir(self.config):
if hasattr(self.config, attr):
return object.__getattribute__(self.config, attr)
return object.__getattribute__(self, attr)

Loading…
Cancel
Save