의 미러
				https://github.com/arsenetar/dupeguru.git
				synced 2025-09-11 17:58:17 +00:00 
			
		
		
		
	Remove pathlib function added in Python 3.9
This commit is contained in:
		
							부모
							
								
									da9f8b2b9d
								
							
						
					
					
						커밋
						ebb81d9f03
					
				| @ -82,10 +82,12 @@ class FolderCategory(ValueListCategory): | ||||
| 
 | ||||
|     def sort_key(self, dupe, crit_value): | ||||
|         value = self.extract_value(dupe) | ||||
|         if value.is_relative_to(crit_value): | ||||
|             return 0 | ||||
|         else: | ||||
|         # This is instead of using is_relative_to() which was added in py 3.9 | ||||
|         try: | ||||
|             value.relative_to(crit_value) | ||||
|         except ValueError: | ||||
|             return 1 | ||||
|         return 0 | ||||
| 
 | ||||
| 
 | ||||
| class FilenameCategory(CriterionCategory): | ||||
|  | ||||
		불러오는 중...
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user