mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Change string literals to bytes, since they are compared to bytes.
This commit is contained in:
		
							parent
							
								
									e3e3701f8f
								
							
						
					
					
						commit
						a5dc3db3d1
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -503,9 +503,9 @@ def read_decimalnl_short(f):
 | 
				
			||||||
    # It's not necessarily true that the result fits in a Python short int:
 | 
					    # It's not necessarily true that the result fits in a Python short int:
 | 
				
			||||||
    # the pickle may have been written on a 64-bit box.  There's also a hack
 | 
					    # the pickle may have been written on a 64-bit box.  There's also a hack
 | 
				
			||||||
    # for True and False here.
 | 
					    # for True and False here.
 | 
				
			||||||
    if s == "00":
 | 
					    if s == b"00":
 | 
				
			||||||
        return False
 | 
					        return False
 | 
				
			||||||
    elif s == "01":
 | 
					    elif s == b"01":
 | 
				
			||||||
        return True
 | 
					        return True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue