~lazr-developers/lazr.restful/oops-fix

« back to all changes in this revision

Viewing changes to src/lazr/restful/marshallers.py

  • Committer: Leonard Richardson
  • Date: 2009-11-10 15:52:03 UTC
  • mto: This revision was merged to the branch mainline in revision 86.
  • Revision ID: leonard.richardson@canonical.com-20091110155203-c8oboqe1xx9cdrfs
Backported fix to create version 0.9.13.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        else:
72
72
            request_port = default_port
73
73
 
 
74
        if not isinstance(url, basestring):
 
75
            raise ValueError("got '%s', expected string: %r" % (
 
76
                type(url).__name__, url))
74
77
        uri = URI(url)
75
78
        protocol = uri.scheme
76
79
        host = uri.host