[Python-checkins] CVS: python/dist/src/Python compile.c,2.106,2.107

Guido van Rossum python-dev@python.org
Mon, 1 May 2000 13:54:58 -0400 (EDT)


Update of /projects/cvsroot/python/dist/src/Python
In directory eric:/projects/python/develop/guido/src/Python

Modified Files:
	compile.c 
Log Message:
Marc-Andre Lemburg:

Support for the new -U command line option option:
with the option enabled the Python compiler
interprets all "..." strings as u"..." (same with r"..." and
ur"...").


Index: compile.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Python/compile.c,v
retrieving revision 2.106
retrieving revision 2.107
diff -C2 -r2.106 -r2.107
*** compile.c	2000/04/28 16:42:25	2.106
--- compile.c	2000/05/01 17:54:56	2.107
***************
*** 921,925 ****
  		}
  	}
! 	if (unicode) {
  		if (rawmode)
  			return PyUnicode_DecodeRawUnicodeEscape(
--- 921,925 ----
  		}
  	}
! 	if (unicode || Py_UnicodeFlag) {
  		if (rawmode)
  			return PyUnicode_DecodeRawUnicodeEscape(