mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Undocument deprecated module global "template".
This commit is contained in:
		
							parent
							
								
									18c55d340f
								
							
						
					
					
						commit
						4b26ff8327
					
				
					 1 changed files with 1 additions and 14 deletions
				
			
		| 
						 | 
					@ -207,21 +207,8 @@ the appropriate function arguments, instead.
 | 
				
			||||||
   the search described above is performed, and the result returned.
 | 
					   the search described above is performed, and the result returned.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. data:: template
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
   .. deprecated:: 2.0
 | 
					 | 
				
			||||||
      Use :func:`gettempprefix` instead.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
   When set to a value other than ``None``, this variable defines the prefix of the
 | 
					 | 
				
			||||||
   final component of the filenames returned by :func:`mktemp`.  A string of six
 | 
					 | 
				
			||||||
   random letters and digits is appended to the prefix to make the filename unique.
 | 
					 | 
				
			||||||
   On Windows, the default prefix is :file:`~T`; on all other systems it is
 | 
					 | 
				
			||||||
   :file:`tmp`.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.. function:: gettempprefix()
 | 
					.. function:: gettempprefix()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   Return the filename prefix used to create temporary files.  This does not
 | 
					   Return the filename prefix used to create temporary files.  This does not
 | 
				
			||||||
   contain the directory component.  Using this function is preferred over reading
 | 
					   contain the directory component.
 | 
				
			||||||
   the *template* variable directly.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue