mirror of https://github.com/CIRCL/PyCIRCLean
				
				
				
			Cleanup unused mimetypes
							parent
							
								
									c4af907345
								
							
						
					
					
						commit
						fda900afc8
					
				| 
						 | 
				
			
			@ -245,13 +245,15 @@ class KittenGroomerFileCheck(KittenGroomerBase):
 | 
			
		|||
        ''' This main type is unknown, that should not happen '''
 | 
			
		||||
        self.cur_file.log_string += 'Unknown file'
 | 
			
		||||
 | 
			
		||||
    # ##### Threated as malicious, no reason to have it on a USB key ######
 | 
			
		||||
    def example(self):
 | 
			
		||||
        '''Way to process example file'''
 | 
			
		||||
        '''Used in examples, should never be returned by libmagic'''
 | 
			
		||||
        self.cur_file.log_string += 'Example file'
 | 
			
		||||
        self.cur_file.make_dangerous()
 | 
			
		||||
        self._safe_copy()
 | 
			
		||||
 | 
			
		||||
    def multipart(self):
 | 
			
		||||
        '''Used in web apps, should never be returned by libmagic'''
 | 
			
		||||
        self.cur_file.log_string += 'Multipart file'
 | 
			
		||||
 | 
			
		||||
    # ##### Threated as malicious, no reason to have it on a USB key ######
 | 
			
		||||
    def message(self):
 | 
			
		||||
        '''Way to process message file'''
 | 
			
		||||
        self.cur_file.log_string += 'Message file'
 | 
			
		||||
| 
						 | 
				
			
			@ -264,14 +266,6 @@ class KittenGroomerFileCheck(KittenGroomerBase):
 | 
			
		|||
        self.cur_file.make_dangerous()
 | 
			
		||||
        self._safe_copy()
 | 
			
		||||
 | 
			
		||||
    def multipart(self):
 | 
			
		||||
        '''Way to process multipart file'''
 | 
			
		||||
        self.cur_file.log_string += 'Multipart file'
 | 
			
		||||
        self.cur_file.make_dangerous()
 | 
			
		||||
        self._safe_copy()
 | 
			
		||||
 | 
			
		||||
    #######################
 | 
			
		||||
 | 
			
		||||
    # ##### Converted ######
 | 
			
		||||
    def text(self):
 | 
			
		||||
        for r in mimes_rtf:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -187,13 +187,15 @@ class KittenGroomer(KittenGroomerBase):
 | 
			
		|||
        ''' This main type is unknown, that should not happen '''
 | 
			
		||||
        self.cur_file.log_string += 'Unknown file'
 | 
			
		||||
 | 
			
		||||
    # ##### Threated as malicious, no reason to have it on a USB key ######
 | 
			
		||||
    def example(self):
 | 
			
		||||
        '''Way to process example file'''
 | 
			
		||||
        '''Used in examples, should never be returned by libmagic'''
 | 
			
		||||
        self.cur_file.log_string += 'Example file'
 | 
			
		||||
        self.cur_file.make_dangerous()
 | 
			
		||||
        self._safe_copy()
 | 
			
		||||
 | 
			
		||||
    def multipart(self):
 | 
			
		||||
        '''Used in web apps, should never be returned by libmagic'''
 | 
			
		||||
        self.cur_file.log_string += 'Multipart file'
 | 
			
		||||
 | 
			
		||||
    # ##### Threated as malicious, no reason to have it on a USB key ######
 | 
			
		||||
    def message(self):
 | 
			
		||||
        '''Way to process message file'''
 | 
			
		||||
        self.cur_file.log_string += 'Message file'
 | 
			
		||||
| 
						 | 
				
			
			@ -206,14 +208,6 @@ class KittenGroomer(KittenGroomerBase):
 | 
			
		|||
        self.cur_file.make_dangerous()
 | 
			
		||||
        self._safe_copy()
 | 
			
		||||
 | 
			
		||||
    def multipart(self):
 | 
			
		||||
        '''Way to process multipart file'''
 | 
			
		||||
        self.cur_file.log_string += 'Multipart file'
 | 
			
		||||
        self.cur_file.make_dangerous()
 | 
			
		||||
        self._safe_copy()
 | 
			
		||||
 | 
			
		||||
    #######################
 | 
			
		||||
 | 
			
		||||
    # ##### Converted ######
 | 
			
		||||
    def text(self):
 | 
			
		||||
        ''' LibreOffice should be able to open all the files '''
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue