def getReaderNames(self):
        """Returns the list or PCSC readers on which to wait for cards."""

        # get inserted readers
        hresult, pcscreaders = SCardListReaders(self.hcontext, [])
        if 0 != hresult and SCARD_E_NO_READERS_AVAILABLE != hresult:
            raise ListReadersException(hresult)

        readers = []

        # if no readers asked, use all inserted readers
        if None == self.readersAsked:
            readers = pcscreaders

        # otherwise use only the asked readers that are inserted
        else:
            for reader in self.readersAsked:
                if not isinstance(reader, type("")):
                    reader = str(reader)
                if reader in pcscreaders:
                    readers = readers + [reader]

        return readers
def getReaderNames ( self ) : hresult , pcscreaders = SCardListReaders ( self . hcontext , [ ] ) if 0 != hresult and SCARD_E_NO_READERS_AVAILABLE != hresult : raise ListReadersException ( hresult ) readers = [ ] if None == self . readersAsked : readers = pcscreaders else : for reader in self . readersAsked : if not isinstance ( reader , type ( "" ) ) : reader = str ( reader ) if reader in pcscreaders : readers = readers + [ reader ] return readers
Returns the list or PCSC readers on which to wait for cards.