From 8ca58c508d0d557e250a7ec84cc8110153d33a8c Mon Sep 17 00:00:00 2001 From: gwen Date: Fri, 5 Oct 2012 11:02:58 +0200 Subject: [PATCH] __dir__ deleted --- test/test_config_api.py | 8 ++++---- tiramisu/config.py | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/test_config_api.py b/test/test_config_api.py index d8c1ea4..babd42e 100644 --- a/test/test_config_api.py +++ b/test/test_config_api.py @@ -102,10 +102,10 @@ def test_str(): c = Config(descr) print c # does not crash -def test_dir(): - descr = make_description() - c = Config(descr) - print dir(c) +#def test_dir(): +# descr = make_description() +# c = Config(descr) +# print dir(c) def test_make_dict(): "serialization of the whole config to a dict" diff --git a/tiramisu/config.py b/tiramisu/config.py index 8c76a36..bb814b1 100644 --- a/tiramisu/config.py +++ b/tiramisu/config.py @@ -267,11 +267,11 @@ class Config(object): return self._cfgimpl_values[name] - def __dir__(self): - #from_type = dir(type(self)) - from_dict = list(self.__dict__) - extras = list(self._cfgimpl_values) - return sorted(set(extras + from_dict)) +# def __dir__(self): +# #from_type = dir(type(self)) +# from_dict = list(self.__dict__) +# extras = list(self._cfgimpl_values) +# return sorted(set(extras + from_dict)) def unwrap_from_name(self, name): # didn't have to stoop so low: `self.get()` must be the proper method