mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	bpo-16055: Fixes incorrect error text for int('1', base=1000) (#4376)
* bpo-16055: Fixes incorrect error text for int('1', base=1000)
* bpo-16055: Address review comments
			
			
This commit is contained in:
		
							parent
							
								
									9b6c60cbce
								
							
						
					
					
						commit
						28b624825e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -4808,7 +4808,7 @@ long_new_impl(PyTypeObject *type, PyObject *x, PyObject *obase)
 | 
			
		|||
        return NULL;
 | 
			
		||||
    if ((base != 0 && base < 2) || base > 36) {
 | 
			
		||||
        PyErr_SetString(PyExc_ValueError,
 | 
			
		||||
                        "int() base must be >= 2 and <= 36");
 | 
			
		||||
                        "int() base must be >= 2 and <= 36, or 0");
 | 
			
		||||
        return NULL;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue