File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -762,7 +762,7 @@ LIBdescribe_entity( Entity entity, FILE * file ) {
762762 /* if the argument is not optional */
763763 if ( !VARget_optional ( v ) ) {
764764 fprintf ( file , "\t\t# Mandatory argument\n" );
765- fprintf ( file , "\t\tassert value != None, 'Argument \"value\" is mandatory and cannot be set to None'\n" );
765+ fprintf ( file , "\t\tassert value is not None, 'Argument \"value\" is mandatory and cannot be set to None'\n" );
766766 fprintf ( file , "\t\tif not check_type(value," );
767767 if ( TYPEis_aggregate ( t ) ) {
768768 process_aggregate ( file , t );
@@ -773,7 +773,7 @@ LIBdescribe_entity( Entity entity, FILE * file ) {
773773 fprintf ( file , "%s):\n" , attr_type );
774774 }
775775 } else {
776- fprintf ( file , "\t\tif value != None: # OPTIONAL attribute\n\t" );
776+ fprintf ( file , "\t\tif value is not None: # OPTIONAL attribute\n\t" );
777777 fprintf ( file , "\t\tif not check_type(value," );
778778 if ( TYPEis_aggregate ( t ) ) {
779779 process_aggregate ( file , t );
You can’t perform that action at this time.
0 commit comments