diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2011-11-23 21:20:06 +0100 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2011-11-23 21:20:06 +0100 |
commit | 1f0362edfbcc12cd2477400b2726b2c6ea739175 (patch) | |
tree | 3d79d6d9080e2840c5ae0534e9e9070c7d5a2774 | |
parent | 93f694779aa263a40eb7b09443972d4783c0b8b3 (diff) | |
download | PyPhytron-1f0362edfbcc12cd2477400b2726b2c6ea739175.tar.gz PyPhytron-1f0362edfbcc12cd2477400b2726b2c6ea739175.tar.bz2 |
rlock scoping fixed
-rw-r--r-- | Phytron.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -307,7 +307,7 @@ class IPCOMM: recv_data = None - with rlock: + with self.rlock: self.conn.flushInput() self.send( ('%X' % ID) + cmd ) @@ -360,7 +360,7 @@ class IPCOMM: """ recv_data = None - with rlock: + with self.rlock: self.conn.flushInput() self.send( ('%X' % ID) + 'IS?' ) |