Ejemplo n.º 1
0
 def loadURL(self, location):
     if hasattr(location, 'read'):
         return location.read()
     return DefaultURLOpener.loadURL(self, location)
Ejemplo n.º 2
0
 def validateProtocol(self, location):
     if hasattr(location, 'read'):
         return True
     return DefaultURLOpener.validateProtocol(self, location)