From 28db2c72cc9312d179e9cab4ab2571b0b2977997 Mon Sep 17 00:00:00 2001 From: frankmorgner Date: Thu, 8 Dec 2011 21:16:26 +0000 Subject: [PATCH] import chat as late as possible to not confuse generation of documentation git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@652 96b47cad-a561-4643-ad3b-153ac7d7599c --- virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py b/virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py index b5d8093..8f293fd 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2011 Dominik Oepen +# Copyright (C) 2011 Dominik Oepen, Frank Morgner # # This file is part of virtualsmartcard. # @@ -22,10 +22,6 @@ from virtualsmartcard.SWutils import SwError, SW from virtualsmartcard.ConstantDefinitions import CRT_TEMPLATE from virtualsmartcard.TLVutils import unpack, bertlv_pack -import hashlib, struct -from os import urandom -from chat import CHAT - class nPA_AT_CRT(ControlReferenceTemplate): def __init__(self): ControlReferenceTemplate.__init__(self, CRT_TEMPLATE["AT"]) @@ -38,6 +34,7 @@ class nPA_AT_CRT(ControlReferenceTemplate): for tlv in structure: tag, length, value = tlv if tag == 0x7f4c: + from chat import CHAT chat = CHAT(bertlv_pack([[tag, length, value]])) print(chat) elif tag == 0x67: