changeset 10:154dab1e474f

Use short form of handle which looks nicer..
author Daniel O'Connor <darius@dons.net.au>
date Sat, 16 May 2009 23:33:20 +0930
parents a6b746654ae2
children f588f5bc834a
files usb488.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/usb488.py	Sat May 16 23:32:51 2009 +0930
+++ b/usb488.py	Sat May 16 23:33:20 2009 +0930
@@ -143,9 +143,9 @@
         self.handle = handle
 
         # Get some info for humans
-        self.vendname = self.handle.getString(dev.iManufacturer, 1024)
-        self.prodname = self.handle.getString(dev.iProduct, 1024)
-        self.serial = self.handle.getString(dev.iSerialNumber, 1024)
+        self.vendname = handle.getString(dev.iManufacturer, 1024)
+        self.prodname = handle.getString(dev.iProduct, 1024)
+        self.serial = handle.getString(dev.iSerialNumber, 1024)
 
         # Determine the endpoints for each operation type
         self.intrep = self.bulkinep = self.bulkoutep = None