mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	bpo-395222: Correctly unparse unicode prefix in ast_unparse.c (GH-19512)
This commit is contained in:
		
							parent
							
								
									96515e9f67
								
							
						
					
					
						commit
						aade1cc453
					
				
					 3 changed files with 5 additions and 0 deletions
				
			
		|  | @ -875,6 +875,8 @@ append_ast_expr(_PyUnicodeWriter *writer, expr_ty e, int level) | |||
|         if (e->v.Constant.value == Py_Ellipsis) { | ||||
|             APPEND_STR_FINISH("..."); | ||||
|         } | ||||
|         APPEND_STR_IF(e->v.Constant.kind != NULL, | ||||
|                       PyUnicode_AS_DATA(e->v.Constant.kind)); | ||||
|         return append_ast_constant(writer, e->v.Constant.value); | ||||
|     case JoinedStr_kind: | ||||
|         return append_joinedstr(writer, e, false); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Batuhan Taşkaya
						Batuhan Taşkaya