/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 bzrlib/urlutils.py

  • Committer: Jelmer Vernooij
  • Date: 2009-04-11 00:29:14 UTC
  • mto: This revision was merged to the branch mainline in revision 4290.
  • Revision ID: jelmer@samba.org-20090411002914-3w0nzogzhl9yq408
Support empty host name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
721
721
        except ValueError:
722
722
            raise errors.InvalidURL('invalid port number %s in url:\n%s' %
723
723
                                    (port, url))
724
 
    if host[0] == '[' and host[-1] == ']': #IPv6
 
724
    if host != "" and host[0] == '[' and host[-1] == ']': #IPv6
725
725
        host = host[1:-1]
726
726
 
727
727
    if host == '':