diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-22 07:22:56 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-22 07:22:56 -0400 |
commit | ff9099051e0daff7b08035713eeca5696ab3217a (patch) | |
tree | 13a391e9010e9e0b99ff403ec2fd0252d460ab5a /coverage/templite.py | |
parent | e3c0b4b2c7d2a92344d30a25467a1e863bbb7d31 (diff) | |
download | python-coveragepy-git-ff9099051e0daff7b08035713eeca5696ab3217a.tar.gz |
The best way to get py3k support: same source runs on both, with some contortions.
Diffstat (limited to 'coverage/templite.py')
-rw-r--r-- | coverage/templite.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/templite.py b/coverage/templite.py index 75fce6d6..23c805b1 100644 --- a/coverage/templite.py +++ b/coverage/templite.py @@ -106,7 +106,7 @@ class _ContextAccess(object): value = getattr(value, dot) except AttributeError: value = value[dot] - if callable(value): + if hasattr(value, '__call__'): value = value() else: value = self.context[key] |