[Pcsclite-git-commit] [website] 03/05: matrix.py: handle descriptors with no iInterface

Ludovic Rousseau rousseau at moszumanska.debian.org
Sun Jul 31 13:51:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository website.

commit 2da4e188fabf6e304a9aa17faaf1691ac12000be
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Sun Jul 31 15:33:19 2016 +0200

    matrix.py: handle descriptors with no iInterface
    
    Some multi interfaces devices (like the Feitian_vR504.txt) do not
    probide iInterface strings for the interfaces.
    
    The name "NO NAME" is used (instead of crashing).
---
 matrix.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/matrix.py b/matrix.py
index 71b6745..c8f8bcb 100755
--- a/matrix.py
+++ b/matrix.py
@@ -51,6 +51,7 @@ def parse_interface(lines):
     reader_dict = {}
     reader_dict['features'] = list()
     reader_dict['limitations'] = list()
+    reader_dict['iInterface'] = "NO NAME"
 
     for line in lines:
         # remove the \n

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/website.git



More information about the Pcsclite-cvs-commit mailing list