[pytango] 38/122: Don't refresh the cache on DeviceProxy._something attribute access
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:18:16 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to tag v9.2.1
in repository pytango.
commit ce299adebceea90fede03b43395aed1730ad7230
Author: Vincent Michel <vincent.michel at maxlab.lu.se>
Date: Mon Sep 26 18:05:10 2016 +0200
Don't refresh the cache on DeviceProxy._something attribute access
---
tango/device_proxy.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tango/device_proxy.py b/tango/device_proxy.py
index fb444a6..951690e 100644
--- a/tango/device_proxy.py
+++ b/tango/device_proxy.py
@@ -228,7 +228,7 @@ def __DeviceProxy__getattr(self, name):
# trait_names is a feature of IPython. Hopefully they will solve
# ticket http://ipython.scipy.org/ipython/ipython/ticket/229 someday
# and the ugly trait_names could be removed.
- if name[:2] == "__" or name == 'trait_names':
+ if name.startswith("_") or name == 'trait_names':
raise AttributeError(name)
name_l = name.lower()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list