From a076b83dc41e7fe66a8a432af8ff8560cfa2bf8c Mon Sep 17 00:00:00 2001 From: iwikiwi Date: Sun, 21 Jun 2009 21:44:45 +0000 Subject: multiple print objects fix v2 --- diff --git a/printer.py b/printer.py index 2520b73..22f1db1 100644 --- a/printer.py +++ b/printer.py @@ -248,12 +248,12 @@ class PrinterManagerObserver(object): def find_Printer(self): try: - printerLoc = self._halmgr.FindDeviceByCapability('printer') + printerLocation = self._halmgr.FindDeviceByCapability('printer') except AttributeError and IndexError: logging.debug('No Print Device found') else: - for print in printerLoc: + for printerLoc in printerLocation: self.device_added(printerLoc) -- cgit v0.9.1