Browse Source

Deleted the __gt__-method because python can derive it from __lt__ and __eg__ already and because i wanted to have the last word. It's early morning, I don't know what I'm doing

Denis Waßmann 7 years ago
parent
commit
7c94338da4
1 changed files with 0 additions and 8 deletions
  1. 0 8
      code/ID2TLib/IPv4.py

+ 0 - 8
code/ID2TLib/IPv4.py

@@ -82,14 +82,6 @@ class IPAddress:
 		
 		return self.ipnum < other.ipnum
 
-	def __gt__(self, other):
-		if other is None:
-			raise TypeError("Cannot compare to None")
-		if not isinstance(other, IPAddress):
-			raise NotImplemented # maybe other can compare to self
-
-		return self.ipnum > other.ipnum
-
 class IPAddressBlock:
 	CIDR_REGEXP = IPAddress.IP_REGEXP + r"(\/(3[0-2]|[12]?\d)|)?"