Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Reads the file and adds all valid locations to the ``self._locations`` array.

:param filename: in the format of server-locations.txt_
:param check_for_primary: if True, a ``MissingPrimaryLocationError`` exception is raised if no primary is found

.. _server-locations.txt: http://mxr.mozilla.org/mozilla-central/source/build/pgo/server-locations.txt

The only exception is that the port, if not defined, defaults to 80 or 443.

FIXME: Shouldn't this default to the protocol-appropriate port?  Is(more...)

src/p/e/peptest-1.0/peptest/runpeptests.py   peptest(Download)
            else:
                enable_proxy = True
                locations.read(self.options.proxyLocations, False)
                locations.add_host(host='127.0.0.1',
                                   port=self.options.serverPort,