Walter Dörwald avatar Walter Dörwald committed da0e9d9

Beim caseinsensitiven scheme- und server-Vergleich muß natürlich vorher
auf None getestet werden.

Comments (0)

Files changed (1)

 		return new
 
 	def __cmp__(self,other):
-		return cmp(string.lower(self.scheme),string.lower(other.scheme)) or cmp(string.lower(self.server),string.lower(other.server)) or cmp(self.port,other.port) or cmp(self.__path,other.__path) or cmp(self.file,other.file) or cmp(self.ext,other.ext) or cmp(self.parameters,other.parameters) or cmp(self.query,other.query) or cmp(self.fragment,other.fragment)
+		scheme1 = self.scheme
+		if scheme1 is not None:
+			scheme1 = string.lower(scheme1)
+		scheme2 = self.scheme
+		if scheme2 is not None:
+			scheme2 = string.lower(scheme2)
+		server1 = self.server
+		if server1 is not None:
+			server1 = string.lower(server1)
+		server2 = self.server
+		if server2 is not None:
+			server2 = string.lower(server2)
+		return cmp(scheme1,scheme2) or cmp(server1,server2) or cmp(self.port,other.port) or cmp(self.__path,other.__path) or cmp(self.file,other.file) or cmp(self.ext,other.ext) or cmp(self.parameters,other.parameters) or cmp(self.query,other.query) or cmp(self.fragment,other.fragment)
 
 	def open(self):
 		return urllib.urlopen(self.asString())
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.