# HG changeset patch # User lbessard # Date 1189407650 -7200 # Node ID bac6435df86f84bbd9a121ed775ec444b98bc6a2 # Parent ce2607713931f789144b272d9eb809c58176e654 Bug on optional attributes generation fixed diff -r ce2607713931 -r bac6435df86f xmlclass/xmlclass.py --- a/xmlclass/xmlclass.py Mon Sep 10 08:37:04 2007 +0200 +++ b/xmlclass/xmlclass.py Mon Sep 10 09:00:50 2007 +0200 @@ -749,7 +749,7 @@ computed_value = ComputeValue(value) else: computed_value = None - if values[2] != "optional" or value != computed_value: + if values[2] != "optional" or (value != None and computed_value != values[3]): if len(bases) > 0: base_extras[attr] = value else: