[Python-checkins] python/dist/src/Python ast.c,1.1.2.16,1.1.2.17

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 25 Mar 2003 11:27:16 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv13305/Python

Modified Files:
      Tag: ast-branch
	ast.c 
Log Message:
parsestr():  Repaired code invoked only when Unicode not enabled.


Index: ast.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/ast.c,v
retrieving revision 1.1.2.16
retrieving revision 1.1.2.17
diff -C2 -d -r1.1.2.16 -r1.1.2.17
*** ast.c	25 Mar 2003 19:24:42 -0000	1.1.2.16
--- ast.c	25 Mar 2003 19:27:11 -0000	1.1.2.17
***************
*** 1625,1629 ****
  			if (unicode) {
  				Py_DECREF(v);
! 				com_error(com, PyExc_ValueError,
  					  "Unicode escapes not legal "
  					  "when Unicode disabled");
--- 1625,1629 ----
  			if (unicode) {
  				Py_DECREF(v);
! 				PyErr_SetString(PyExc_ValueError,
  					  "Unicode escapes not legal "
  					  "when Unicode disabled");