mirror of
				https://github.com/qurator-spk/modstool.git
				synced 2025-11-04 03:14:14 +01:00 
			
		
		
		
	🧹 Autofixes by Black/ruff
This commit is contained in:
		
							parent
							
								
									6cce9f512a
								
							
						
					
					
						commit
						1e5cfcc0e5
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -196,13 +196,15 @@ class TagGroup:
 | 
				
			||||||
                if e.text == "de":
 | 
					                if e.text == "de":
 | 
				
			||||||
                    e.attrib["authority"] = "iso639-2b"
 | 
					                    e.attrib["authority"] = "iso639-2b"
 | 
				
			||||||
                    e.text = "deu"
 | 
					                    e.text = "deu"
 | 
				
			||||||
                    warnings.warn("Changed languageTerm authority from rfc3066 to iso639-2b")
 | 
					                    warnings.warn(
 | 
				
			||||||
 | 
					                        "Changed languageTerm authority from rfc3066 to iso639-2b"
 | 
				
			||||||
 | 
					                    )
 | 
				
			||||||
        return self
 | 
					        return self
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def add_missing_type_text(self) -> TagGroup:
 | 
					    def add_missing_type_text(self) -> TagGroup:
 | 
				
			||||||
        for e in self.group:
 | 
					        for e in self.group:
 | 
				
			||||||
            # Default to type=text
 | 
					            # Default to type=text
 | 
				
			||||||
            if not "type" in e.attrib:
 | 
					            if "type" not in e.attrib:
 | 
				
			||||||
                e.attrib["type"] = "text"
 | 
					                e.attrib["type"] = "text"
 | 
				
			||||||
                warnings.warn("Added placeTerm type='text'")
 | 
					                warnings.warn("Added placeTerm type='text'")
 | 
				
			||||||
        return self
 | 
					        return self
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue