mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fix for bug #1634343: allow specifying empty arguments on Windows
This commit is contained in:
		
							parent
							
								
									2be9d43c18
								
							
						
					
					
						commit
						10514a70ac
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -499,7 +499,7 @@ def list2cmdline(seq): | |||
|         if result: | ||||
|             result.append(' ') | ||||
| 
 | ||||
|         needquote = (" " in arg) or ("\t" in arg) | ||||
|         needquote = (" " in arg) or ("\t" in arg) or arg == "" | ||||
|         if needquote: | ||||
|             result.append('"') | ||||
| 
 | ||||
|  |  | |||
|  | @ -430,6 +430,8 @@ def test_list2cmdline(self): | |||
|                          '"a\\\\b c" d e') | ||||
|         self.assertEqual(subprocess.list2cmdline(['a\\\\b\\ c', 'd', 'e']), | ||||
|                          '"a\\\\b\\ c" d e') | ||||
|         self.assertEqual(subprocess.list2cmdline(['ab', '']), | ||||
|                          'ab ""') | ||||
| 
 | ||||
| 
 | ||||
|     def test_poll(self): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Peter Astrand
						Peter Astrand