root/galaxy-central/eggs/twill-0.9-py2.6.egg/twill/other_packages/_mechanize_dist/_seek.py
| リビジョン 3, 484 bytes (コミッタ: kohda, 15 年 前) |
|---|
| 行番号 | |
|---|---|
| 1 | from urllib2 import BaseHandler |
| 2 | from _util import deprecation |
| 3 | from _response import response_seek_wrapper |
| 4 | |
| 5 | |
| 6 | class SeekableProcessor(BaseHandler): |
| 7 | """Deprecated: Make responses seekable.""" |
| 8 | |
| 9 | def __init__(self): |
| 10 | deprecation( |
| 11 | "See http://wwwsearch.sourceforge.net/mechanize/doc.html#seekable") |
| 12 | |
| 13 | def any_response(self, request, response): |
| 14 | if not hasattr(response, "seek"): |
| 15 | return response_seek_wrapper(response) |
| 16 | return response |
Note: リポジトリブラウザについてのヘルプは TracBrowser
を参照してください。
![(trac.ini の [header_logo] セクションを設定してください)](/bh10.10/chrome/site/your_project_logo.png)