mirror of
				https://github.com/django/django.git
				synced 2025-11-04 09:57:47 +03:00 
			
		
		
		
	Fixed another Python 2.3 bug (this one on django.http.parse_file_upload). I think there's one left.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		
							parent
							
								
									2cd6db682f
								
							
						
					
					
						commit
						cb1ff2af35
					
				| 
						 | 
				
			
			@ -52,7 +52,7 @@ def parse_file_upload(header_dict, post_data):
 | 
			
		|||
    POST = MultiValueDict()
 | 
			
		||||
    FILES = MultiValueDict()
 | 
			
		||||
    for submessage in msg.get_payload():
 | 
			
		||||
        if isinstance(submessage, email.Message.Message):
 | 
			
		||||
        if submessage and isinstance(submessage, email.Message.Message):
 | 
			
		||||
            name_dict = parse_header(submessage['Content-Disposition'])[1]
 | 
			
		||||
            # name_dict is something like {'name': 'file', 'filename': 'test.txt'} for file uploads
 | 
			
		||||
            # or {'name': 'blah'} for POST fields
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user