Open a document at the specified url. @param url: A document URL. @type url: str @return: A file pointer to the document. @rtype: StringIO
(self, url)
| 552 | } |
| 553 | |
| 554 | def open(self, url): |
| 555 | """ |
| 556 | Open a document at the specified url. |
| 557 | @param url: A document URL. |
| 558 | @type url: str |
| 559 | @return: A file pointer to the document. |
| 560 | @rtype: StringIO |
| 561 | """ |
| 562 | protocol, location = self.split(url) |
| 563 | if protocol == self.protocol: |
| 564 | return self.find(location) |
| 565 | else: |
| 566 | return None |
| 567 | |
| 568 | def find(self, location): |
| 569 | """ |