mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	tty isn't supported on all boxes.
This commit is contained in:
		
							parent
							
								
									b66871f1c0
								
							
						
					
					
						commit
						ba8194bd2a
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -68,7 +68,12 @@
 | 
				
			||||||
import timeit
 | 
					import timeit
 | 
				
			||||||
import toaiff
 | 
					import toaiff
 | 
				
			||||||
import token
 | 
					import token
 | 
				
			||||||
import tty
 | 
					try:
 | 
				
			||||||
 | 
					    import tty     # not available on Windows
 | 
				
			||||||
 | 
					except ImportError:
 | 
				
			||||||
 | 
					    if verbose:
 | 
				
			||||||
 | 
					        print "skipping tty"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Can't test the "user" module -- if the user has a ~/.pythonrc.py, it
 | 
					# Can't test the "user" module -- if the user has a ~/.pythonrc.py, it
 | 
				
			||||||
# can screw up all sorts of things (esp. if it prints!).
 | 
					# can screw up all sorts of things (esp. if it prints!).
 | 
				
			||||||
#import user
 | 
					#import user
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue