[Python-3000-checkins] r58689 - python/branches/py3k-pep3137/Python/ast.c

guido.van.rossum python-3000-checkins at python.org
Sat Oct 27 18:23:24 CEST 2007


Author: guido.van.rossum
Date: Sat Oct 27 18:23:24 2007
New Revision: 58689

Modified:
   python/branches/py3k-pep3137/Python/ast.c
Log:
Tiny cleanup of comment and unnecessary check for '_' in parsestr().


Modified: python/branches/py3k-pep3137/Python/ast.c
==============================================================================
--- python/branches/py3k-pep3137/Python/ast.c	(original)
+++ python/branches/py3k-pep3137/Python/ast.c	Sat Oct 27 18:23:24 2007
@@ -3174,7 +3174,7 @@
 }
 
 /* s is a Python string literal, including the bracketing quote characters,
- * and r &/or u prefixes (if any), and embedded escape sequences (if any).
+ * and r &/or b prefixes (if any), and embedded escape sequences (if any).
  * parsestr parses it, and returns the decoded Python string object.
  */
 static PyObject *
@@ -3186,7 +3186,7 @@
     int rawmode = 0;
     int need_encoding;
 
-    if (isalpha(quote) || quote == '_') {
+    if (isalpha(quote)) {
         if (quote == 'b' || quote == 'B') {
             quote = *++s;
             *bytesmode = 1;


More information about the Python-3000-checkins mailing list