mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Fix whitespace.
This commit is contained in:
		
							parent
							
								
									4843eb400b
								
							
						
					
					
						commit
						8c077227f2
					
				
					 1 changed files with 15 additions and 15 deletions
				
			
		|  | @ -1643,10 +1643,10 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s, | ||||||
|                     chr += 10 + c - 'A'; |                     chr += 10 + c - 'A'; | ||||||
|             } |             } | ||||||
|             s += i; |             s += i; | ||||||
| 	    if (chr == 0xffffffff) |             if (chr == 0xffffffff) | ||||||
| 		    /* _decoding_error will have already written into the
 |                     /* _decoding_error will have already written into the
 | ||||||
| 		       target buffer. */ |                        target buffer. */ | ||||||
| 		    break; |                     break; | ||||||
|         store: |         store: | ||||||
|             /* when we get here, chr is a 32-bit unicode character */ |             /* when we get here, chr is a 32-bit unicode character */ | ||||||
|             if (chr <= 0xffff) |             if (chr <= 0xffff) | ||||||
|  | @ -1654,7 +1654,7 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s, | ||||||
|                 *p++ = (Py_UNICODE) chr; |                 *p++ = (Py_UNICODE) chr; | ||||||
|             else if (chr <= 0x10ffff) { |             else if (chr <= 0x10ffff) { | ||||||
|                 /* UCS-4 character. Either store directly, or as
 |                 /* UCS-4 character. Either store directly, or as
 | ||||||
| 		   surrogate pair. */ |                    surrogate pair. */ | ||||||
| #ifdef Py_UNICODE_WIDE | #ifdef Py_UNICODE_WIDE | ||||||
|                 *p++ = chr; |                 *p++ = chr; | ||||||
| #else | #else | ||||||
|  | @ -1707,19 +1707,19 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s, | ||||||
|             break; |             break; | ||||||
| 
 | 
 | ||||||
|         default: |         default: | ||||||
| 	    if (s > end) { |             if (s > end) { | ||||||
| 		if (unicodeescape_decoding_error(&p, errors, "\\ at end of string")) |                 if (unicodeescape_decoding_error(&p, errors, "\\ at end of string")) | ||||||
| 		    goto onError; |                     goto onError; | ||||||
| 	    } |             } | ||||||
| 	    else { |             else { | ||||||
| 		*p++ = '\\'; |                 *p++ = '\\'; | ||||||
| 		*p++ = (unsigned char)s[-1]; |                 *p++ = (unsigned char)s[-1]; | ||||||
| 	    } |             } | ||||||
|             break; |             break; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     if (_PyUnicode_Resize(&v, (int)(p - buf))) |     if (_PyUnicode_Resize(&v, (int)(p - buf))) | ||||||
| 		goto onError; |                 goto onError; | ||||||
|     return (PyObject *)v; |     return (PyObject *)v; | ||||||
| 
 | 
 | ||||||
| ucnhashError: | ucnhashError: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Walter Dörwald
						Walter Dörwald