bernardpaulus / scriptim

readline-enabled shell to interact with smartcards, based on pyscard
GNU General Public License v3.0
4 stars 3 forks source link

Compensate for __eq__ bug in pyscard #5

Closed bernardpaulus closed 12 years ago

bernardpaulus commented 12 years ago

I filled a bug report in pyscard: https://sourceforge.net/tracker/index.php?func=detail&aid=3418113&group_id=196342&atid=957072

There is a typo in the eq function of the reader : it compares to True with any instance different of a Reader

Currently the best way to compare the readers with anything is to str() them, while being sure that the string is not the name of the reader.

It would be best to detect it and/or compensate for it.

bernardpaulus commented 12 years ago

i don't have the time to fork pyscard, so i'll program with that in mind