diff Python/ceval.c @ 1198:2937897a7d8b legacy-trunk

* Added Fixcprt.py: script to fix copyright message. * various modules: added 1993 to copyright. * thread.c: added copyright notice. * ceval.c: minor change to error message for "+" * stdwinmodule.c: check for error from wfetchcolor * config.c: MS-DOS fixes (define PYTHONPATH, use DELIM, use osdefs.h) * Add declaration of inittab to import.h * sysmodule.c: added sys.builtin_module_names * xxmodule.c, xxobject.c: fix minor errors
author Guido van Rossum <guido@python.org>
date Tue, 26 Jan 1993 13:33:44 +0000
parents 950cd37fcddc
children b564bd4e57e1
line wrap: on
line diff
--- a/Python/ceval.c	Tue Jan 26 13:04:43 1993 +0000
+++ b/Python/ceval.c	Tue Jan 26 13:33:44 1993 +0000
@@ -1,6 +1,6 @@
 /***********************************************************
-Copyright 1991, 1992 by Stichting Mathematisch Centrum, Amsterdam, The
-Netherlands.
+Copyright 1991, 1992, 1993 by Stichting Mathematisch Centrum,
+Amsterdam, The Netherlands.
 
                         All Rights Reserved
 
@@ -1577,10 +1577,8 @@
 		DECREF(w);
 		return x;
 	}
-	else {
-		err_setstr(TypeError, "+ not supported by operands");
-		return NULL;
-	}
+	err_setstr(TypeError, "bad operand type(s) for +");
+	return NULL;
 }
 
 static object *