/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: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import threading
22
22
 
23
 
from breezy import (
 
23
from . import (
24
24
    errors,
25
25
    urlutils,
26
26
    )
27
 
from breezy.branch import Branch
28
 
from breezy.controldir import (
 
27
from .branch import Branch
 
28
from .controldir import (
29
29
    ControlDir,
30
30
    )
31
31
 
290
290
        What is acceptable means is defined by the policy's `follow_reference` and
291
291
        `check_one_url` methods.
292
292
        """
293
 
        if type(url) != str:
 
293
        if not isinstance(url, str):
294
294
            raise TypeError
295
295
 
296
296
        url = self.check_and_follow_branch_reference(url)