root/galaxy-central/eggs/twill-0.9-py2.6.egg/twill/other_packages/_mechanize_dist/_seek.py @ 3

リビジョン 3, 484 bytes (コミッタ: kohda, 14 年 前)

Install Unix tools  http://hannonlab.cshl.edu/galaxy_unix_tools/galaxy.html

行番号 
1from urllib2 import BaseHandler
2from _util import deprecation
3from _response import response_seek_wrapper
4
5
6class 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 を参照してください。