mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	random module: Convert a "while 1" to "while True (GH-21700)
This commit is contained in:
		
							parent
							
								
									5c3270939c
								
							
						
					
					
						commit
						6a613f90bf
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -682,7 +682,7 @@ def gammavariate(self, alpha, beta):
 | 
				
			||||||
            bbb = alpha - LOG4
 | 
					            bbb = alpha - LOG4
 | 
				
			||||||
            ccc = alpha + ainv
 | 
					            ccc = alpha + ainv
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            while 1:
 | 
					            while True:
 | 
				
			||||||
                u1 = random()
 | 
					                u1 = random()
 | 
				
			||||||
                if not 1e-7 < u1 < 0.9999999:
 | 
					                if not 1e-7 < u1 < 0.9999999:
 | 
				
			||||||
                    continue
 | 
					                    continue
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue