certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] applications/PyHLA/hla/omt record.py


From: certi-cvs
Subject: [certi-cvs] applications/PyHLA/hla/omt record.py
Date: Thu, 09 Oct 2008 16:49:48 +0000

CVSROOT:        /sources/certi
Module name:    applications
Changes by:     Petr Gotthard <gotthardp>       08/10/09 16:49:48

Modified files:
        PyHLA/hla/omt  : record.py 

Log message:
        Bugfix: Fixed search for 'HLAother'

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/PyHLA/hla/omt/record.py?cvsroot=certi&r1=1.1&r2=1.2

Patches:
Index: record.py
===================================================================
RCS file: /sources/certi/applications/PyHLA/hla/omt/record.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- record.py   25 Sep 2008 17:17:44 -0000      1.1
+++ record.py   9 Oct 2008 16:49:47 -0000       1.2
@@ -11,7 +11,7 @@
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # Lesser General Public License for more details.
 #
-# $Id: record.py,v 1.1 2008/09/25 17:17:44 gotthardp Exp $
+# $Id: record.py,v 1.2 2008/10/09 16:49:47 gotthardp Exp $
 
 from hla._omt import *
 from basic import *
@@ -93,7 +93,7 @@
                 return fieldName, fieldType
         # step 2: look for the 'HLAother' symbol
         for fieldEnumerator, fieldName, fieldType in self.alternatives:
-            if(fieldEnumerator == None):
+            if(None in fieldEnumerator):
                 return fieldName, fieldType
         # not found
         return None, None
@@ -121,4 +121,4 @@
             buffer += padding(len(buffer), self.octetBoundary)*'\0'
         return value, size
 
-# $Id: record.py,v 1.1 2008/09/25 17:17:44 gotthardp Exp $
+# $Id: record.py,v 1.2 2008/10/09 16:49:47 gotthardp Exp $




reply via email to

[Prev in Thread] Current Thread [Next in Thread]