예제 #1
0
 def loadURL(self, location):
     if hasattr(location, 'read'):
         return location.read()
     return DefaultURLOpener.loadURL(self, location)
예제 #2
0
 def validateProtocol(self, location):
     if hasattr(location, 'read'):
         return True
     return DefaultURLOpener.validateProtocol(self, location)