def loadURL(self, location): if hasattr(location, 'read'): return location.read() return DefaultURLOpener.loadURL(self, location)
def validateProtocol(self, location): if hasattr(location, 'read'): return True return DefaultURLOpener.validateProtocol(self, location)