kopia lustrzana https://github.com/collective/icalendar
				
				
				
			Add some __eq__
Needed as 088eea7 adds comparison of elements this makes sure that they
are compared by value instead of by reference.
			
			
				pull/568/head
			
			
		
							rodzic
							
								
									974d511ceb
								
							
						
					
					
						commit
						759f98388a
					
				|  | @ -28,6 +28,8 @@ Bug fixes: | |||
|   [jacadzaca] | ||||
| - Use non legacy timezone name. | ||||
|   Ref: #567 | ||||
| - Add some compare functions. | ||||
|   Ref: #568 | ||||
| 
 | ||||
| 5.0.10 (unreleased) | ||||
| ------------------- | ||||
|  |  | |||
|  | @ -257,6 +257,11 @@ class vDDDLists: | |||
|             out.append(vDDDTypes.from_ical(ical_dt, timezone=timezone)) | ||||
|         return out | ||||
| 
 | ||||
|     def __eq__(self, other): | ||||
|         if not isinstance(other, vDDDLists): | ||||
|             return False | ||||
|         return self.dts == other.dts | ||||
| 
 | ||||
| 
 | ||||
| class vCategory: | ||||
| 
 | ||||
|  | @ -865,6 +870,11 @@ class vUTCOffset: | |||
|             return -offset | ||||
|         return offset | ||||
| 
 | ||||
|     def __eq__(self, other): | ||||
|         if not isinstance(other, vUTCOffset): | ||||
|             return False | ||||
|         return self.td == other.td | ||||
| 
 | ||||
| 
 | ||||
| class vInline(str): | ||||
|     """This is an especially dumb class that just holds raw unparsed text and | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Jochen Sprickerhof
						Jochen Sprickerhof