• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(69)  |  Call(62)  |  Derive(6)  |  Import(1)
No Document.

src/k/e/keeprunning-HEAD/twill/other_packages/_mechanize_dist/_urllib2.py   keeprunning(Download)
 
# handlers...
# ...from urllib2...
from urllib2 import \
     BaseHandler, \
     UnknownHandler, \
     FTPHandler, \

src/p/y/pyvm-HEAD/projects/python_in_a_can/trunk/win32/mercurial-1.6.4/lib/mercurial/byterange.py   pyvm(Download)
class FileRangeHandler(urllib2.FileHandler):
    """FileHandler subclass that adds Range support.
    This class handles Range headers exactly like an HTTP
    server would.
    """
    def open_local_file(self, req):
        import mimetypes

src/o/s/ospace-HEAD/trunk/ospace/oslauncher/oslauncher/urlgrabber/byterange.py   ospace(Download)
class FileRangeHandler(urllib2.FileHandler):
    """FileHandler subclass that adds Range support.
    This class handles Range headers exactly like an HTTP
    server would.
    """
    def open_local_file(self, req):
        import mimetypes

src/o/s/ospace-HEAD/ospace/oslauncher/oslauncher/urlgrabber/byterange.py   ospace(Download)
class FileRangeHandler(urllib2.FileHandler):
    """FileHandler subclass that adds Range support.
    This class handles Range headers exactly like an HTTP
    server would.
    """
    def open_local_file(self, req):
        import mimetypes

src/u/r/urlgrabber-3.1.0/urlgrabber/byterange.py   urlgrabber(Download)
class FileRangeHandler(urllib2.FileHandler):
    """FileHandler subclass that adds Range support.
    This class handles Range headers exactly like an HTTP
    server would.
    """
    def open_local_file(self, req):
        import mimetypes

src/a/m/Amara-2.0a4/lib/lib/iri.py   Amara(Download)
class _pep302_handler(urllib2.FileHandler):
    """
    A class to handler opening of PEP 302 pseudo-URLs.
 
    The syntax for this pseudo-URL is:
        url    := "pkgdata://" module "/" path
        module := <Python module name>

src/4/s/4Suite-XML-1.0.2/Ft/Lib/Uri.py   4Suite-XML(Download)
class _Pep302Handler(urllib2.FileHandler):
    """
    A class to handler opening of PEP 302 pseudo-URLs.
 
    The syntax for this pseudo-URL is:
        url    := "pep302://" module "/" path
        module := <Python module name>

src/u/n/unixpiger-HEAD/trunk/monitor/api/python/Lib/test/test_urllib2.py   unixpiger(Download)
    def test_file(self):
        import time, rfc822, socket
        h = urllib2.FileHandler()
        o = h.parent = MockOpener()
 
        TESTFN = test_support.TESTFN
        urlpath = sanepathname2url(os.path.abspath(TESTFN))
            finally:
                os.remove(TESTFN)
 
        h = urllib2.FileHandler()
        o = h.parent = MockOpener()
        # XXXX why does // mean ftp (and /// mean not ftp!), and where
        #  is file: scheme specified?  I think this is really a bug, and

src/u/n/unixpiger-HEAD/monitor/api/python/Lib/test/test_urllib2.py   unixpiger(Download)
    def test_file(self):
        import time, rfc822, socket
        h = urllib2.FileHandler()
        o = h.parent = MockOpener()
 
        TESTFN = test_support.TESTFN
        urlpath = sanepathname2url(os.path.abspath(TESTFN))
            finally:
                os.remove(TESTFN)
 
        h = urllib2.FileHandler()
        o = h.parent = MockOpener()
        # XXXX why does // mean ftp (and /// mean not ftp!), and where
        #  is file: scheme specified?  I think this is really a bug, and

src/s/p/spike-HEAD/vendor/stackless/v2.5.1/Lib/test/test_urllib2.py   spike(Download)
    def test_file(self):
        import time, rfc822, socket
        h = urllib2.FileHandler()
        o = h.parent = MockOpener()
 
        TESTFN = test_support.TESTFN
        urlpath = sanepathname2url(os.path.abspath(TESTFN))
            finally:
                os.remove(TESTFN)
 
        h = urllib2.FileHandler()
        o = h.parent = MockOpener()
        # XXXX why does // mean ftp (and /// mean not ftp!), and where
        #  is file: scheme specified?  I think this is really a bug, and

  1 | 2 | 3 | 4  Next