mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	#3045: fix pydoc behavior for TEMP path with spaces.
This commit is contained in:
		
							parent
							
								
									0e6ea5d715
								
							
						
					
					
						commit
						b32dea5a3e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1333,7 +1333,7 @@ def getpager(): | |||
|     (fd, filename) = tempfile.mkstemp() | ||||
|     os.close(fd) | ||||
|     try: | ||||
|         if hasattr(os, 'system') and os.system('more %s' % filename) == 0: | ||||
|         if hasattr(os, 'system') and os.system('more "%s"' % filename) == 0: | ||||
|             return lambda text: pipepager(text, 'more') | ||||
|         else: | ||||
|             return ttypager | ||||
|  | @ -1361,7 +1361,7 @@ def tempfilepager(text, cmd): | |||
|     file.write(text) | ||||
|     file.close() | ||||
|     try: | ||||
|         os.system(cmd + ' ' + filename) | ||||
|         os.system(cmd + ' "' + filename + '"') | ||||
|     finally: | ||||
|         os.unlink(filename) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl