Skip to content

Commit bf95295

Browse files
committed
Fixes gak#114. A last minute changed broke the command line.
1 parent a6dba7f commit bf95295

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ A simple use of the API is::
6969
Documentation
7070
=============
7171

72-
Feel free to browse the `documentation of pycallgraph <http://pycallgraph.slowchop.com/en/develop/>`_ for the `usage guide <http://pycallgraph.slowchop.com/en/develop/guide/index.html>`_ and `API reference <http://pycallgraph.slowchop.com/en/develop/api/api.html>`_.
72+
Feel free to browse the `documentation of pycallgraph <http://pycallgraph.slowchop.com/en/master/>`_ for the `usage guide <http://pycallgraph.slowchop.com/en/master/guide/index.html>`_ and `API reference <http://pycallgraph.slowchop.com/en/master/api/api.html>`_.

pycallgraph/output/output.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ def set_config(self, config):
2424
the output module config variables.
2525
'''
2626
for k, v in config.__dict__.iteritems():
27-
is_fun = callable(getattr(self, k))
28-
if hasattr(self, k) and is_fun:
27+
if hasattr(self, k) and callable(getattr(self, k)):
2928
continue
3029
setattr(self, k, v)
3130

test/test_output.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from helpers import *
2+
3+
4+
def test_set_config():
5+
'''Should not raise!'''
6+
Output().set_config(Config())

0 commit comments

Comments
 (0)