/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/url_policy_open.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-12 01:41:38 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181112014138-3b0zyx91cu3wdq3k
More PEP8 fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
    checked against a policy object.
185
185
 
186
186
    The policy object is expected to have the following methods:
187
 
    * check_one_url 
 
187
    * check_one_url
188
188
    * should_follow_references
189
189
    * transform_fallback_location
190
190
    """
248
248
    def transform_fallback_locationHook(cls, branch, url):
249
249
        """Installed as the 'transform_fallback_location' Branch hook.
250
250
 
251
 
        This method calls `transform_fallback_location` on the policy object and
252
 
        either returns the url it provides or passes it back to
 
251
        This method calls `transform_fallback_location` on the policy object
 
252
        and either returns the url it provides or passes it back to
253
253
        check_and_follow_branch_reference.
254
254
        """
255
255
        try:
287
287
    def open(self, url):
288
288
        """Open the Bazaar branch at url, first checking it.
289
289
 
290
 
        What is acceptable means is defined by the policy's `follow_reference` and
291
 
        `check_one_url` methods.
 
290
        What is acceptable means is defined by the policy's `follow_reference`
 
291
        and `check_one_url` methods.
292
292
        """
293
293
        if not isinstance(url, str):
294
294
            raise TypeError